Hi there,
I have a publication type, that has a date/time input as first field. A piece code in Guppy.php causes a java script error which results in the java script editor not being loaded.
The code causing the error is at the end of function guppy_buildText($componentSpec, $element, $data)
$initialFocus = guppy_fetchAttribute($element, 'initialFocus', false);
if ($initialFocus)
{
echo "
guppyAddOnLoadEvent( function() {
var element = document.getElementById('$formFieldName');
if (typeof element.focus != 'undefined')
{
element.focus();
}
} )
";
It the webpage source I found that the script generated by the PHP above references an element "f:pubedit:date:0" but there are only elements "f:pubedit:date:0:d" and "f:pubedit:date:0:t".
I commented out the lines in the PHP because I don't really now how to fix this properly. It works now for me.
Best regards
Michael