Made some efficiency improvements in wobject save.
This commit is contained in:
parent
8cf465c3e6
commit
c65c92ebf5
17 changed files with 25 additions and 38 deletions
|
|
@ -62,12 +62,12 @@ sub www_edit {
|
|||
sub www_editSave {
|
||||
return WebGUI::Privilege::insufficient() unless (WebGUI::Privilege::canEditPage());
|
||||
my ($attachment, $property);
|
||||
$_[0]->SUPER::www_editSave();
|
||||
$_[0]->SUPER::www_editSave() if ($_[0]->get("wobjectId") eq "new");
|
||||
$attachment = WebGUI::Attachment->new("",$_[0]->get("wobjectId"));
|
||||
$attachment->save("attachment");
|
||||
$property->{linkURL} = $session{form}{linkURL};
|
||||
$property->{attachment} = $attachment->getFilename if ($attachment->getFilename ne "");
|
||||
$_[0]->set($property);
|
||||
$_[0]->SUPER::www_editSave($property);
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue