Announcement

Collapse
No announcement yet.

Bug. Push Button Grid fails if product reference contains certain characters.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bug. Push Button Grid fails if product reference contains certain characters.

    Using 8.5.1.0.0.0.HIZA. Probably broken in 8.5.2.

    Problem:

    If the product reference contains certain characters (e.g. space . -) then the push button grid is generated but fails with JavaScript errors.

    Reason:

    There are 2 faults:

    1) Code within layout Push Button Grid is using an unquoted tag name. This breaks if the product reference contains spaces.

    2) Code within actinic_main.php (which is in C:\Program Files\Actinic v8) is using the product reference in a way that spaces dots, etc may break it.

    Fixes:

    1) Edit layout Push Button Grid and replace
    Code:
    echo "<input type='hidden' name=${listAttributeWidgets[$nBaseAttributeIdx + $nAttributeIdxOffset -1]} value=''>";
    with
    Code:
    echo "<input type='hidden' name='${listAttributeWidgets[$nBaseAttributeIdx + $nAttributeIdxOffset -1]}' value=''>";
    2) Edit actinic_main.php (which is in C:\Program Files\Actinic v8) and replace
    Code:
    echo "this.form.{$listAttributeWidgets[$nBaseAttributeIdx + $i - 1]}.value='{$listChoiceIds[$nBaseAttributeIdx + $i -1][$listCellChoiceIndices[$i]][0]}';";
    with
    Code:
    echo "var x=document.getElementsByName('{$listAttributeWidgets[$nBaseAttributeIdx + $i - 1]}');x[x.length - 1].value='{$listChoiceIds[$nBaseAttributeIdx + $i -1][$listCellChoiceIndices[$i]][0]}';";
    Close and restart Actinic so that the changes to actinic_main.php come into effect.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    #2
    Thanks for the report and the solution. I've raised this as a bug to be fixed.

    Comment


      #3
      This bug is in 8.5.2 and V9

      Comment


        #4
        Yep - this bug is still outstanding in v8, but will be fixed in 9.0.3.

        Comment


          #5
          bug is still outstanding
          This productid bug must be the longest running ever

          Comment

          Working...
          X