Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1025965
D96.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jun 13, 5:34 PM
Size
738 B
Mime Type
text/x-diff
Expires
Sat, Jun 14, 5:34 PM (3 h, 18 m)
Engine
blob
Format
Raw Data
Handle
661628
Attached To
D96: INP-1449 - Recalculate priorities, when new item is added
D96.id.diff
View Options
Index: branches/5.2.x/core/units/helpers/priority_helper.php
===================================================================
--- branches/5.2.x/core/units/helpers/priority_helper.php
+++ branches/5.2.x/core/units/helpers/priority_helper.php
@@ -91,13 +91,6 @@
return Array ();
}
- list ($id, $pair) = each($changes);
-
- if ( !$id && !isset($pair['constrain']) ) {
- // adding new item without constrain -> priority stays the same
- return Array ($id);
- }
-
$id_field = $this->Application->getUnitOption($event->Prefix, 'IDField');
$table_name = $this->Application->getUnitOption($event->Prefix, 'TableName');
@@ -245,4 +238,4 @@
$dummy->Update();
}
}
- }
\ No newline at end of file
+ }
Event Timeline
Log In to Comment