Commit ce8fdcab authored by Project Open's avatar Project Open

- Now honoring the disabled property of the CellEditor.

  This is used to avoid editing in the timesheet interval logger.
  Also now skipping an error if no taskPropertyPanel is defined.
parent 59d01332
......@@ -71,6 +71,11 @@ Ext.define('PO.view.gantt.GanttTreePanel', {
var me = this;
if (me.debug) console.log('PO.view.gantt.GanttTreePanel.cellediting.beforeedit');
if (me.disabled) {
if (me.debug) console.log('PO.view.gantt.GanttTreePanel.cellediting.beforeedit: CellEditing is disabled, skipping...');
return false;
}
// switch all columns to read-only mode if the user doesn't have to right to edit the project...
if (!write_project_p) return false;
......@@ -417,6 +422,10 @@ Ext.define('PO.view.gantt.GanttTreePanel', {
var me = this;
if (me.debug) console.log('PO.view.gantt.GanttTreePanel.beforeItemDblClick');
var taskPropertyPanel = Ext.getCmp('ganttTaskPropertyPanel');
if (!taskPropertyPanel) {
console.log('PO.view.gantt.GanttTreePanel.beforeItemDblClick: No ganttTaskPropertyPanel found - skipping');
return;
}
taskPropertyPanel.setValue(record);
taskPropertyPanel.setActiveTab('taskPropertyFormGeneral');
taskPropertyPanel.show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment