From 67c796c91dd41eead349649c9390c6df7a68717b Mon Sep 17 00:00:00 2001 From: axman Date: Thu, 11 Feb 2021 13:35:36 -0700 Subject: [PATCH] fixed --- Model/CoGrouperLite.php | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/Model/CoGrouperLite.php b/Model/CoGrouperLite.php index 154c0e6..a0798e3 100644 --- a/Model/CoGrouperLite.php +++ b/Model/CoGrouperLite.php @@ -42,39 +42,33 @@ class CoGrouperLite extends CoDashboardWidgetBackend { public $hasMany = array( ); + /* + Not sure if will use public $duplicatableModels = array( "CoGrouperLite" => array( "parent" => "CoDashboardWidget", "fk" => "co_dashboard_widget_id" ) - ); + );*/ // Validation rules for table elements + //Tried adding rule to each field to make alphaNumeric, but keeps throwing errors. will research. public $validate = array( 'co_dashboard_widget_id' => array( 'rule' => 'numeric', - 'required' => true, - 'allowEmpty' => false + 'required' => true ), 'connUrl' => array( - 'rule' => 'alphaNumeric', - 'required' => true, - 'allowEmpty' => false + 'required' => true ), 'connVer' => array( - 'rule' => 'alphaNumeric', - 'required' => true, - 'allowEmpty' => false + 'required' => true ), 'connUser' => array( - 'rule' => 'alphaNumeric', - 'required' => true, - 'allowEmpty' => false + 'required' => true ), 'connPass' => array( - 'rule' => 'alphaNumeric', - 'required' => true, - 'allowEmpty' => false + 'required' => true ), );