mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-02-03 12:28:29 +00:00
Merge pull request #178 from andrepereiradasilva/patch-1
Change media version when applying/reverting a patch
This commit is contained in:
commit
2db9fe7a76
@ -326,6 +326,10 @@ class PullModel extends \JModelDatabase
|
|||||||
->where($db->quoteName('pull_id') . ' = ' . (int) $id)
|
->where($db->quoteName('pull_id') . ' = ' . (int) $id)
|
||||||
)->execute();
|
)->execute();
|
||||||
|
|
||||||
|
// Change the media version
|
||||||
|
$version = new \JVersion;
|
||||||
|
$version->refreshMediaVersion();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -440,6 +444,10 @@ class PullModel extends \JModelDatabase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Change the media version
|
||||||
|
$version = new \JVersion;
|
||||||
|
$version->refreshMediaVersion();
|
||||||
|
|
||||||
return $this->removeTest($testRecord);
|
return $this->removeTest($testRecord);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user