Jump to content

Upgraded From 3.0.1 To 3.0.4 - Can't Seem To Get Custom Field Data Anymore In Myinfo


Recommended Posts

Posted

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?

Posted

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
Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...