OFBiz
  1. OFBiz
  2. OFBIZ-4313

"setUserPreference" goes to main page instead last view if current form includes any lookup field

    Details

      Description

      When I open a form which include lookup field and then click the "set User Preference" button around the upper right corner, the page will go to "main" after user preference is setted.

      The cause is the requests initiated by lookup field does not remeber the last view name. It simply use "main" instead.

        Activity

        Hide
        Jacques Le Roux added a comment -

        Thanks Leon (and Bruno for the help ;o),

        Your patch is in
        trunk at r1137433
        R11.04 at r1137436.

        Show
        Jacques Le Roux added a comment - Thanks Leon (and Bruno for the help ;o), Your patch is in trunk at r1137433 R11.04 at r1137436.
        Hide
        Leon added a comment -

        Yes, Bruno. You're right, it's the header expanded/collpased button. The "
        setUserPreference" is the javascript function which triggered by click on
        that button.

        Show
        Leon added a comment - Yes, Bruno. You're right, it's the header expanded/collpased button. The " setUserPreference" is the javascript function which triggered by click on that button.
        Hide
        Bruno Busco added a comment -

        Could it be related to the button used to expand/collapse the header ?

        Show
        Bruno Busco added a comment - Could it be related to the button used to expand/collapse the header ?
        Hide
        Jacques Le Roux added a comment -

        Leon,

        Quickly tested

        1. I did not find any <<"set User Preference" button around the upper right corner>>, There is only the Preferences menu in Bizness Time theme, are you sure you are using trunk?
        2. I know this behaviour exists when changing theme. But after having applied your patch and compiled, I still see it. So the patch does not fix this one, are you referring to something else?
        Show
        Jacques Le Roux added a comment - Leon, Quickly tested I did not find any <<"set User Preference" button around the upper right corner>>, There is only the Preferences menu in Bizness Time theme, are you sure you are using trunk? I know this behaviour exists when changing theme. But after having applied your patch and compiled, I still see it. So the patch does not fix this one, are you referring to something else?
        Hide
        Leon added a comment -

        Patch to make lookup requests remember the LAST_VIEW_NAME correctly.

        Show
        Leon added a comment - Patch to make lookup requests remember the LAST_VIEW_NAME correctly.

          People

          • Assignee:
            Jacques Le Roux
            Reporter:
            Leon
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development