Log in | Register | Lost password

Bottom
Bug in 6.3.0 Publication Editor
  • Posted: 07.05.2007, 21:31
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    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)

    Quote

    $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

Template courtesy of Designs By Darren.