I am not sure the problem is there as the required velue is well entered.
I mean, still in the Songs example, we have
PHP Code:
'title' => array(
'name' => 'title',
'vname' => 'LBL_TITLE',
'required' => true,
'type' => 'varchar',
'len' => 255,
),
But when you use the mudule without modifications, the output when you ommit the title for a new entry is :
PHP Code:
Notice: Undefined index: isDuplicate in F:webdevSugarSuite-Full-4.2.0amodulesSongsSave.php on line 38
Query Failed:INSERT into songs set id='c08abe71-0f25-bc8c-9d45-4463603819e4', date_entered='2006-05-11 16:05:29', created_by='1', date_modified='2006-05-11 16:05:29', modified_user_id='1', deleted='0', title=null, length='0', description=null, bitrate=null, explicit='0', genre=null, format=null::MySQL error 1048: Column 'title' cannot be null
So i guess the problem is not in vardefs.php but somewhere in how the Forms.php is made or called.
Bookmarks