{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/8350","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/8350/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/8350/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/8350/events","html_url":"https://github.com/joomla/joomla-cms/pull/8350","id":115774046,"number":8350,"title":"Extensions: Update - show current version of extension","user":{"login":"pe7er","id":1217850,"avatar_url":"https://avatars.githubusercontent.com/u/1217850?v=3","gravatar_id":"","url":"https://api.github.com/users/pe7er","html_url":"https://github.com/pe7er","followers_url":"https://api.github.com/users/pe7er/followers","following_url":"https://api.github.com/users/pe7er/following{/other_user}","gists_url":"https://api.github.com/users/pe7er/gists{/gist_id}","starred_url":"https://api.github.com/users/pe7er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pe7er/subscriptions","organizations_url":"https://api.github.com/users/pe7er/orgs","repos_url":"https://api.github.com/users/pe7er/repos","events_url":"https://api.github.com/users/pe7er/events{/privacy}","received_events_url":"https://api.github.com/users/pe7er/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/Language%20Change","name":"Language Change","color":"eb6420"},{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/New%20Feature","name":"New Feature","color":"e102d8"},{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/PR-staging","name":"PR-staging","color":"c7def8"},{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/RTC","name":"RTC","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/joomla/joomla-cms/milestones/12","html_url":"https://github.com/joomla/joomla-cms/milestones/Joomla!%203.6.0","labels_url":"https://api.github.com/repos/joomla/joomla-cms/milestones/12/labels","id":1360635,"number":12,"title":"Joomla! 3.6.0","description":"","creator":{"login":"roland-d","id":359377,"avatar_url":"https://avatars.githubusercontent.com/u/359377?v=3","gravatar_id":"","url":"https://api.github.com/users/roland-d","html_url":"https://github.com/roland-d","followers_url":"https://api.github.com/users/roland-d/followers","following_url":"https://api.github.com/users/roland-d/following{/other_user}","gists_url":"https://api.github.com/users/roland-d/gists{/gist_id}","starred_url":"https://api.github.com/users/roland-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roland-d/subscriptions","organizations_url":"https://api.github.com/users/roland-d/orgs","repos_url":"https://api.github.com/users/roland-d/repos","events_url":"https://api.github.com/users/roland-d/events{/privacy}","received_events_url":"https://api.github.com/users/roland-d/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":1,"state":"open","created_at":"2015-10-17T07:57:38Z","updated_at":"2015-11-10T08:09:28Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-11-09T00:50:27Z","updated_at":"2015-11-11T14:34:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/8350","html_url":"https://github.com/joomla/joomla-cms/pull/8350","diff_url":"https://github.com/joomla/joomla-cms/pull/8350.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/8350.patch"},"body":"This PR adds to **Extensions: Update** the **current version of an extension**.  The current list of extensions that could be updated to a newer version only shows the new version number. \r\n\r\nThis feature was requested by wkone in Joomla forum http://forum.joomla.org/viewtopic.php?f=708&t=898474. I think that showing the current and new version gives an administrator more information about possible issues: If the extensions uses semantic versioning then 2.1 to 2.2 is a minor update with little issues. An update from 2.9 to 3.1 might give somewhat more issues.\r\n\r\n# Testing Instructions\r\nI had to test this feature on a Joomla 3.4.5 website because I was not able to use the \"Extension: Update\" funtion in Joomla 3.5Beta1. After installing some old versions of some extensions in 3.5Beta1 I did not get the list of updates for those extensions. Probably because those extensions do not have new versions for 3.5Beta1...\r\n\r\n**Edit:** Workaround to **test** this patch **on Joomla 3.5Beta1**: \r\nmanually **edit** libraries/cms/version/**version.php** and temporary change the constant for Release & Development level:\r\nconst RELEASE = '**3.4.5**';\r\nconst DEV_LEVEL = '**stable**';\r\nWith these values Joomla will find new extension updates for old 3rd party extensions.\r\n\r\nDon't forget to **change it back** to the original values **after testing** this patch. Original values:\r\nconst RELEASE = '3.5';\r\nconst DEV_LEVEL = '0-beta';\r\n\r\n\r\n## Before the PR\r\nI've installed 3 older versions of extensions that use Joomla's update functionality.\r\n**Extensions: Update** (via Extensions > Manage > Update) shows that there are 3 updates that can be installed. It shows the version of the extension that will be installed but not the current version\r\n\r\n![com_installer-update-current-version-before](https://cloud.githubusercontent.com/assets/1217850/11023815/39a0be4e-8683-11e5-8722-c8a2c029f1bb.png)\r\n\r\n## After the PR\r\nAfter installing this PR the **Extensions: Update** (via Extensions > Manage > Update) shows **Current version** and **Version** (that will be installed)\r\n\r\n![com_installer-update-current-version-after](https://cloud.githubusercontent.com/assets/1217850/11023816/39a0d0be-8683-11e5-9fba-affaa9984aae.png)\r\n"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/155798411","html_url":"https://github.com/joomla/joomla-cms/pull/8350#issuecomment-155798411","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/8350","id":155798411,"user":{"login":"brianteeman","id":1296369,"avatar_url":"https://avatars.githubusercontent.com/u/1296369?v=3","gravatar_id":"","url":"https://api.github.com/users/brianteeman","html_url":"https://github.com/brianteeman","followers_url":"https://api.github.com/users/brianteeman/followers","following_url":"https://api.github.com/users/brianteeman/following{/other_user}","gists_url":"https://api.github.com/users/brianteeman/gists{/gist_id}","starred_url":"https://api.github.com/users/brianteeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianteeman/subscriptions","organizations_url":"https://api.github.com/users/brianteeman/orgs","repos_url":"https://api.github.com/users/brianteeman/repos","events_url":"https://api.github.com/users/brianteeman/events{/privacy}","received_events_url":"https://api.github.com/users/brianteeman/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T14:34:01Z","updated_at":"2015-11-11T14:34:01Z","body":"Thanks for doing that @pe7er <hr /><sub>This comment was created with the <a href=\"https://github.com/joomla/jissues\">J!Tracker Application</a> at <a href=\"https://issues.joomla.org/tracker/joomla-cms/8350\">issues.joomla.org/joomla-cms/8350</a>.</sub>"}}