Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14099

Default selections in add-hyperlink popup dialogue behave oddly

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.1.0rc1
    • 4.1.0rc1
    • None
    • Operating System: Linux (FC9)
      PHP Version: 5.2.6
      Database and version: MySQL 5.0.22
      Browser (and version): FF 3.0.4
      ezoe trunk version (rev-3394)

    Description

      In the add hyperlink dialogue popup, if a user does as I do and browses for the object to link to first - because it's not easy to know, especially for newbies - if the object they're wanting to select is an eznode, ezobject or whatever and the object browsed-for and selected turns out to be an 'eznode' - then first menu in the 'href block' doesn't change to reflect the type of object selected.

      If after you discover your selected object is of type 'eznode' and you manually change it in the first menu to 'eznode' - the 2nd menu loses the object/node ID on the onchange() JS event. Is this first menu even necessary? Is ezoe able to detect the href 'type' of the selected object automatically?

      In addition, re-editing an Article with such a link in for example, and selecting the linked-text, reselecting the 'insert/edit link' editor button: The 'type' in the first <select> menu does not default to the correct type.

      Steps to reproduce

      Open an article for editing
      Type some text and select a string to add a hyperlink to
      Select the 'insert/edit link' button on the editor's toolbar
      Notice the first menu defaults to 'Other' - so select the 'browse' icon and select an image to link-to from the 'Media' section for example
      Back in the initial interface within the popup, the object you selected is an 'eznode' but the first menu still states 'other'
      Select 'OK'
      Then re-highlight your link and re-select the 'insert/edit link' button on the editor's toolbar, the first menu still says 'Other'
      The same happens, even if you correctly select 'eznode' from the first menu before you search for some content to link to.

      Attachments

        Activity

          People

            andre1 andre1
            phptek phptek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: