CraigA Posted October 8, 2013 Report Posted October 8, 2013 Hello all, I just upgraded from 3.0.1 to 3.0.4. I edited the app/controller/client_main.pdt to include custom field data as I have in all previous version, however, the info just isn't showing up anymore in the my info section of the main login for the client. (echoing the variable shows nothing). app/controller/client_main.pdt $myinfo_settings = array( 'invoice' => array( 'enabled' => ("true" == $client->settings['client_set_invoice']), 'description' => Language::_("ClientMain.myinfo.setting_invoices", true, $invoice_method_language) ), 'autodebit' => array( 'enabled' => true, 'description' => $this->getAutodebitDescription() ), 'customfield' => $field_values[0]->value ); app/view/client/default/client_main_myinfo.pdt $customfield = $this->Html->_($myinfo_settings['customfield'], true); echo "Custom field: <b>" . $customfield . "</b><br />"; Any ideas why this isn't working on the new version?
Paul Posted October 8, 2013 Report Posted October 8, 2013 Do you mean app/controller/client_main.php? Cody or Tyson should be able to help with this.
CraigA Posted October 8, 2013 Author Report Posted October 8, 2013 Do you mean app/controller/client_main.php? Cody or Tyson should be able to help with this. yes sorry, client_main.php
Tyson Posted October 8, 2013 Report Posted October 8, 2013 Since client_main.php is apart of the patch, if you did not merge your custom changes with the patched file, then they were overwritten. Based on your code excerpt, $field_values is undefined: 'customfield' => $field_values[0]->value
CraigA Posted October 8, 2013 Author Report Posted October 8, 2013 Since client_main.php is apart of the patch, if you did not merge your custom changes with the patched file, then they were overwritten. Based on your code excerpt, $field_values is undefined: 'customfield' => $field_values[0]->value Life saver! I forgot to move over the definition. I really love your guys support.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now