<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Form fields 'Image Button' do not work in Forms"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=46579#c18">Comment # 18</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Form fields 'Image Button' do not work in Forms"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=46579">bug 46579</a>
              from <span class="vcard"><a class="email" href="mailto:lionel@mamane.lu" title="Lionel Elie Mamane <lionel@mamane.lu>"> <span class="fn">Lionel Elie Mamane</span></a>
</span></b>
        <pre>Wow, that's a strange bug indeed.

Text button and image button seem to have quite different implementations, not
sure why.

I see that text buttons, in forms/source/component/Button.cxx, have some
special treatment of URLs starting with ".uno:FormController/", in function
OButtonControl::getModelUrlFeatureId:

    // are we a URL button?
    if ( eButtonType == FormButtonType_URL )
    {
        // is it a feature URL?
        if ( isFormControllerURL( sUrl ) )
        {
            nFeatureId = OFormNavigationMapper::getFeatureId( sUrl );
        }
    }

My guess is that the same treatment must happen for image buttons, but doesn't.
Probably should happen either somewhere in ImageButton.cxx or in the parent
class clickableimage.cxx</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>