mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-01-24 15:48:27 +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)
|
||||
)->execute();
|
||||
|
||||
// Change the media version
|
||||
$version = new \JVersion;
|
||||
$version->refreshMediaVersion();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -440,6 +444,10 @@ class PullModel extends \JModelDatabase
|
||||
}
|
||||
}
|
||||
|
||||
// Change the media version
|
||||
$version = new \JVersion;
|
||||
$version->refreshMediaVersion();
|
||||
|
||||
return $this->removeTest($testRecord);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user