Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-4253

Shopping cart -> Role details: page says Edit role

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.6 (Comenius)
    • Fix Version/s: 3.9
    • Component/s: GUI
    • Labels:
    • Subscription:
      Active subscription

      Description

      When in Shopping cart, user clicks on role green box, s/he gets to role details.
      Here, the page title says: Edit role X

      Correct page title is: Show role details.

      the code is related to this piece gui\admin-gui\src\main\java\com\evolveum\midpoint\web\page\admin\PageAdminObjectDetails.java, line 131 to 144:

      			protected String load() {
      				if (!isEditingFocus()) {
      					String key = "PageAdminObjectDetails.title.new" + getCompileTimeClass().getSimpleName();
      					return createStringResource(key).getObject();
      				}
      
      				String name = null;
      				if (getObjectWrapper() != null && getObjectWrapper().getObject() != null) {
      					name = WebComponentUtil.getName(getObjectWrapper().getObject());
      				}
      
      				String key = "PageAdminObjectDetails.title.edit" + getCompileTimeClass().getSimpleName();
      				return createStringResource(key, name).getObject();
      			}
      
      

        Attachments

          Activity

            People

            • Assignee:
              petr.gasparik Petr Gašparík
              Reporter:
              petr.gasparik Petr Gašparík
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: