diff options
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/EditTicketPage.java')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/EditTicketPage.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/EditTicketPage.java b/src/main/java/com/gitblit/wicket/pages/EditTicketPage.java index 61e12878..6b090629 100644 --- a/src/main/java/com/gitblit/wicket/pages/EditTicketPage.java +++ b/src/main/java/com/gitblit/wicket/pages/EditTicketPage.java @@ -42,6 +42,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;
@@ -152,7 +153,13 @@ public class EditTicketPage extends RepositoryPage { form.setOutputMarkupId(true);
- form.add(new TicketRelationEditorPanel("dependencies", dependenciesModel, getRepositoryModel()));
+ form.add(new TicketRelationEditorPanel("dependencies", dependenciesModel, ticket.number) {
+ private static final long serialVersionUID = 1L;
+ @Override
+ protected RepositoryModel getRepositoryModel() {
+ return EditTicketPage.this.getRepositoryModel();
+ }
+ });
final IModel<String> markdownPreviewModel = Model.of(ticket.body == null ? "" : ticket.body);
descriptionPreview = new Label("descriptionPreview", markdownPreviewModel);
|