diff options
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/NewTicketPage.java')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/NewTicketPage.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/NewTicketPage.java b/src/main/java/com/gitblit/wicket/pages/NewTicketPage.java index 3722be10..011f4b68 100644 --- a/src/main/java/com/gitblit/wicket/pages/NewTicketPage.java +++ b/src/main/java/com/gitblit/wicket/pages/NewTicketPage.java @@ -39,6 +39,7 @@ import com.gitblit.Constants; import com.gitblit.Constants.AccessPermission;
import com.gitblit.Constants.AuthorizationControl;
import com.gitblit.models.RegistrantAccessPermission;
+import com.gitblit.models.RepositoryModel;
import com.gitblit.models.TicketModel;
import com.gitblit.models.TicketModel.Change;
import com.gitblit.models.TicketModel.Field;
@@ -127,7 +128,15 @@ public class NewTicketPage extends RepositoryPage { descriptionEditor.setRepository(repositoryName);
form.add(descriptionEditor);
- form.add(new TicketRelationEditorPanel("dependencies", dependenciesModel, getRepositoryModel()));
+ form.add(new TicketRelationEditorPanel("dependencies", dependenciesModel, null) {
+
+ private static final long serialVersionUID = 1L;
+
+ @Override
+ protected RepositoryModel getRepositoryModel() {
+ return NewTicketPage.this.getRepositoryModel();
+ }
+ });
if (currentUser.canAdmin(null, getRepositoryModel())) {
// responsible
|