Creating comments does not work anymore

Steps to reproduce

Steps to reproduce:
1. Try to create a new comment

Actual Results:
Cannot create a new comment (everything is greyed out, cannot press the "Add" button therefore.

Expected Results:
Creating comments should work

Workaround (if any):

Activity

Show:
Sven Stauber
March 21, 2017, 2:59 AM

First problem analysis reveals:

Line 627 in https://bitbucket.org/opencast-community/matterhorn/src/9692ab2d3cd7e9462ed724be8ad18c8db17a61a6/modules/matterhorn-admin-ui-ng/src/main/webapp/scripts/modules/events/controllers/eventController.js?at=develop&fileviewer=file-view-default causes a problem:

The "Submit" button to add a new comment will only be active if a comment reason has been set. The chosen dropdown to select a comment reason is, however, not active.

It is not active because of line 627:

ng-disabled="!transactions.read_only"

So the value of the variable transactions.read_only seems not to be set correctly anymore.

Sven Stauber
March 21, 2017, 3:30 AM
Edited

Binsearching issue...

2017-03-08 8fd1070 Merged in MH-11849: Problem exists
2017-02-20 22f0c22 Merged "Remove Empty REST Endpoint Notes": Works

-> Problem was introduced by PR 1338

Rüdiger Rolf
March 21, 2017, 4:08 AM

Thanks for the hint. I will have a look.

Lars Kiesow
March 21, 2017, 4:51 AM

I can confirm this on octestallinone.
Seems like the options for the categories are not loaded at all.

Rüdiger Rolf
March 21, 2017, 5:46 AM

@lkiesow: I thought so too, but data is dynamically loaded as soon as I remove the disabled class

Fixed and reviewed

Assignee

Rüdiger Rolf

Reporter

Sven Stauber

Severity

Incorrectly Functioning Without Workaround

Tags (folksonomy)

None

Components

Fix versions

Priority

Blocker