Mandatory information about my setup:
Have I searched the tickets before posting? yes
Have I searched the forum before posting? yes
Have I read the documentation before posting (which pages?)? yes
Joomla! version: 3.3.6 Stable
PHP version: 5.5.3-1
MySQL version: 5.5.37-0
Hotspots version: Hotspots Professional 4.3.1
Direct link to the page that shows the issue: repaired
Description of my issue:
There is an error in front-end submission (bugfix), if submission do not have any custom fields. This part of the components/com_hotspots/models/hotspot.php prevent form to be submitted (error about unknown variable, or something like this), failed with fatal error.
public function getForm($data = array(), $loadData = true)
{
// Get the form.
$form = $this->loadForm('com_hotspots.marker', 'marker', array('control' => 'jform', 'load_data' => $loadData));
// Make sure that the custom fields are part of the form
/******** ------ THIS IS THE BAD PLACE. I commented to make my own site running, but had to be checked and repaired.
// $customFieldsModel = $this->getInstance('Customfields', 'HotspotsModel');
// $form->load(HotspotsHelperCustomfields::generateFormXML($customFieldsModel->getItems($data['catid'])));
***********/