Commit 54c2a5728e97f010b4e04e8552d0d699a285c648
1 parent
5dd33b59
Add a validator for field behaviours
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3791 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
0 deletions
lib/validation/dispatchervalidation.inc.php
| ... | ... | @@ -116,6 +116,11 @@ class KTDispatcherValidation { |
| 116 | 116 | require_once(KT_LIB_DIR . '/documentmanagement/DocumentField.inc'); |
| 117 | 117 | return $this->validateEntity('DocumentField', $iId, $aOptions); |
| 118 | 118 | } |
| 119 | + | |
| 120 | + function &validateBehaviour($iId, $aOptions = null) { | |
| 121 | + require_once(KT_LIB_DIR . '/metadata/fieldbehaviour.inc.php'); | |
| 122 | + return $this->validateEntity('KTFieldBehaviour', $iId, $aOptions); | |
| 123 | + } | |
| 119 | 124 | } |
| 120 | 125 | |
| 121 | 126 | ?> | ... | ... |