Bug 1004785

Summary: Wrong form header in Popups
Product: [Retired] JBoss BPMS Platform 6 Reporter: Mauricio Salatino <msalatin>
Component: Business CentralAssignee: Walter Medvedeo <wmedvede>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Baluch <mbaluch>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: kverlaen, lpetrovi, msalatin, wmedvede
Target Milestone: ER2   
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:03:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Wrong Header. none

Description Mauricio Salatino 2013-09-05 13:32:35 UTC
Description of problem: 
nasty form header in popup, which is useless and can be avoided


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Mauricio Salatino 2013-09-05 13:33:43 UTC
Fixed in master

Comment 3 Marek Baluch 2013-09-06 08:17:34 UTC
Hi Mauricio

could you possibly add more description on what was wrong? Not sure from current description how to verify your fix.

Thanks.

@M

Comment 4 Marek Baluch 2013-10-21 09:29:18 UTC
Created attachment 814491 [details]
Wrong Header.

Comment 5 Marek Baluch 2013-10-21 09:29:43 UTC
This issues deals with the forms. Namely task and process forms which have a popup with a header that has Hard Coded the word "Form". See attached screenshot.

Comment 6 Marek Baluch 2013-10-21 09:31:05 UTC
I had a chat with Mauricio and this issue is not yet fixed.

The header is no more an issue for tasks as the details will be opened in another frame not in a popup but it's still an issue for start process (see attached image).

Comment 7 Walter Medvedeo 2014-02-11 17:30:42 UTC
the issue was solved in the following commits:

master branch: URL: http://github.com/droolsjbpm/jbpm-console-ng/commit/46de3abed

6.0.x branch: http://github.com/droolsjbpm/jbpm-console-ng/commit/7bf37ac66

Comment 8 Marek Baluch 2014-02-18 18:52:53 UTC
Seems that the commit did not make it into sync.2014.02.10. The FormDisplayPopupPresenter still contains the old implementation of the getTitle() method:

@WorkbenchPartTitle
public String getTitle() {
    return constants.Form();
}

Comment 9 Walter Medvedeo 2014-02-19 10:37:36 UTC
I browsed manually both master and 6.0.x branches in github repository and FormDisplayPopupPresenter.java has the correct code in both branches. It has the code pushed in the commits reported above.
I guess the test has been done with a build that didn't include the fix.


See:

https://github.com/droolsjbpm/jbpm-console-ng/blob/master/jbpm-console-ng-human-tasks/jbpm-console-ng-human-tasks-client/src/main/java/org/jbpm/console/ng/ht/client/editors/taskform/popup/FormDisplayPopupPresenter.java

    @WorkbenchPartTitle
    public String getTitle() {
        String title = createTitle();
        return SafeHtmlUtils.htmlEscape(title != null ? title : "");
    }

https://github.com/droolsjbpm/jbpm-console-ng/blob/6.0.x/jbpm-console-ng-human-tasks/jbpm-console-ng-human-tasks-client/src/main/java/org/jbpm/console/ng/ht/client/editors/taskform/popup/FormDisplayPopupPresenter.java

    @WorkbenchPartTitle
    public String getTitle() {
        String title = createTitle();
        return SafeHtmlUtils.htmlEscape(title != null ? title : "");
    }

Comment 10 Marek Baluch 2014-02-19 15:07:20 UTC
Walter,

you are correct that the fix is present on github. I was talking about the repo on http://git.app.eng.bos.redhat.com/ which also hosts the repo. This source is used when building product binaries.

Please see: 

http://git.app.eng.bos.redhat.com/jbpm-console-ng.git/tree/jbpm-console-ng-human-tasks/jbpm-console-ng-human-tasks-client/src/main/java/org/jbpm/console/ng/ht/client/editors/taskform/FormDisplayPresenter.java?id=sync.2014.02.10#n388

@WorkbenchPartTitle
public String getTitle() {
    return constants.Form();
}

Comment 11 Walter Medvedeo 2014-02-19 19:10:55 UTC
Marek,
thanks for the clarification. Honestly I don't know why the commit wasn't included in the tag. Because it was done at 2014-02-11. But you are right.
Now it will be included for the next product release.
Thanks.

Comment 12 Marek Baluch 2014-03-05 13:31:56 UTC
Verified on 6.0.1.ER2.