index 446c7f244a0633b70108b4b235ec0ad7aff49183..334bd988dc6e3c55e51552274d5b63439a1b3155 100644 (file)
*/
if($this->cutCurrent){
+ if(isset($_POST['PerformCopyPaste'])){
+ $msgs = $this->check();
+ if(count ($msgs) ){
+ foreach( $msgs as $msg){
+ print_red($msg);
+ }
+ }else{
+ $this->current->save();
+ $this->dialogOpen =false;
+ $this->Clear();
+ }
+ }
if($this->current){
$smarty = get_smarty();
$smarty->assign("type","cut");
return($smarty->fetch(get_template_path("copyPasteDialog.tpl",FALSE)));
}
- if(isset($_POST['PerformCopyPaste'])){
- $this->current->save();
- $this->dialogOpen =false;
- $this->Clear();
- }
/* Copy & paste
*/
}else{