Created
July 14, 2010 20:05
-
-
Save cirpo/475977 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if($this->getObject()->isNew() || $this->getValue('attachment_name') != $this->getObject()->getAttachmentName()) | |
| { | |
| //check if attachment filename field or attachment file field are both filled, they both have to be filled if you want to upload an attachemnt file | |
| $this->mergePostValidator(new AttachementNameAndAttachmentFileValidatorSchema()); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment