You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use Author.Plugin as the second argument to addAsset() which will automatically use the latest version number of the provided plugin. (@bennothommo could you add that to the docs? I don't think we have that behavior documented anywhere that references the System\Traits\AssetMaker)
The text was updated successfully, but these errors were encountered:
Thank you for your input! Removing the version number, unfortunately, doesn't automatically add the latest version number because PluginVersion::getVersion($build) in getAssetEntryBuildPath always returns null.
We will provide an update as soon as we know why it returns null.
@magenizr check your system_plugin_versions table, if your plugin changed the case or exact contents of its identifier then that would be why, since it uses the records in PluginVersion model to get the latest version, not the PluginManager which normalizes the input into a standard ID first
Sorry, I believe the morning coffee didn't kick in when I read your comment. You're absolutely right, one of the following arguments automatically returns the plugin version.
October_Envbar/Plugin.php
Line 36 in 61f3421
You can use Author.Plugin as the second argument to addAsset() which will automatically use the latest version number of the provided plugin. (@bennothommo could you add that to the docs? I don't think we have that behavior documented anywhere that references the System\Traits\AssetMaker)
The text was updated successfully, but these errors were encountered: