I want to make some vardef changes in an upgrade safe manner
In this instance I am changing Calls so that date_end is a datetime field
I changed modules/calls/vardefs.php and it worked
'date_end' =>
array (
'name' => 'date_end',
'vname' => 'LBL_DATE_END',
'type' => 'datetime',
'massupdate'=>false,
'comment' => 'Date is which call is scheduled to (or did) end'
),
Once I established it did what I wanted I tried doing in in a different way
I created a file custom/Extension/modules/Calls/Ext/Vardefs/custom.php
and put in
$dictionary['Call']['fields']['date_end'] = array (
'name' => 'date_end',
'vname' => 'LBL_DATE_END',
'type' => 'datetime',
'massupdate'=>false,
'comment' => 'Date call is scheduled to (or did) end (custom)',
);
Then did a repair but this seems to have been ignored
the data that shows in studio is from the original vardefs not my custom version
In the past I have used the extension method to add one-many relationships and it works
is it just studio that ignores the custom files?
Just to make me more confused changing date_end to datetime in calls alterded the calls table but when I did the same in Meetings the table did not change
If anyone could explain how it all works I would be very grateful


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks