Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
axel committed Feb 11, 2021
1 parent 2ca391e commit 67c796c
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions Model/CoGrouperLite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
);

Expand Down

0 comments on commit 67c796c

Please sign in to comment.