BUG 11835 : Assignment rules after upgrade to 2.0.46
Sol: Adding patch for next PM versions using SELF_SERVICE. Plus checking Version to set the patch.
This commit is contained in:
@@ -29,9 +29,10 @@ class patch
|
|||||||
while($row = $rs->getRow()) {
|
while($row = $rs->getRow()) {
|
||||||
if ($row ['Field'] == "TAS_GROUP_VARIABLE") {
|
if ($row ['Field'] == "TAS_GROUP_VARIABLE") {
|
||||||
$version = System::getVersion ();
|
$version = System::getVersion ();
|
||||||
$pos = strpos($version,'2.5.1-testing');
|
$version = explode('-',$version);
|
||||||
if ($version == '2.5.0.1' || $pos !== false) {
|
//$pos = strpos($version,'2.5.1-testing');
|
||||||
echo "Version ".$version . " Patch\n";
|
if ($version[0] == '2.5.1') {
|
||||||
|
echo "Version " . $version[0] . " Patch\n";
|
||||||
patch::$isPathchable = true;
|
patch::$isPathchable = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -54,7 +55,7 @@ class patch
|
|||||||
$task = new Task();
|
$task = new Task();
|
||||||
if ( patch::$isPathchable && method_exists($task,'getTasGroupVariable')) {
|
if ( patch::$isPathchable && method_exists($task,'getTasGroupVariable')) {
|
||||||
$con = Propel::getConnection("workflow");
|
$con = Propel::getConnection("workflow");
|
||||||
$stmt = $con->prepareStatement("select TAS_UID from TASK;");
|
$stmt = $con->prepareStatement("select TAS_UID from TASK where TAS_ASSIGN_TYPE = 'SELF_SERVICE';");
|
||||||
$recordSet = $stmt->executeQuery();
|
$recordSet = $stmt->executeQuery();
|
||||||
$recordSet->next();
|
$recordSet->next();
|
||||||
$aRow = $recordSet->getRow();
|
$aRow = $recordSet->getRow();
|
||||||
|
|||||||
Reference in New Issue
Block a user