Skip to content

Commit

Permalink
ref #92633 Display module version (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocmonavtik authored Nov 23, 2023
1 parent 3a30986 commit d5f29dc
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 20 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,6 @@ jobs:
strategy:
matrix:
include:
- php-version: '7.3'
test-suite: '3'
oc: '3.0.0.0'
- php-version: '7.3'
test-suite: '3'
oc: '3.0.0.2'
- php-version: '7.3'
test-suite: '3'
oc: '3.0.1.0'
- php-version: '7.3'
test-suite: '3'
oc: '3.0.1.1'
Expand Down Expand Up @@ -71,15 +62,6 @@ jobs:
- php-version: '7.3'
test-suite: '3'
oc: '3.0.3.8'
- php-version: '7.4'
test-suite: '3'
oc: '3.0.0.0'
- php-version: '7.4'
test-suite: '3'
oc: '3.0.0.2'
- php-version: '7.4'
test-suite: '3'
oc: '3.0.1.0'
- php-version: '7.4'
test-suite: '3'
oc: '3.0.1.1'
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v4.1.15
* Display module version

## v4.1.14
* Added currency validation when configuring the module

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1.14
4.1.15
6 changes: 6 additions & 0 deletions doc/Update module.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### Обновление версии модуля

Для обновления версии модуля необходимо обновить следующие файлы:
* VERSION
* CHANGELOG.md
* src/upload/admin/controller/extension/module/retailcrm.php
4 changes: 4 additions & 0 deletions src/upload/admin/controller/extension/module/retailcrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

class ControllerExtensionModuleRetailcrm extends Controller
{
const VERSION_MODULE = '4.1.15';

private $_error = [];
protected $log, $statuses, $payments, $deliveryTypes, $retailcrmApiClient, $moduleTitle, $tokenTitle;
public $children, $template;
Expand Down Expand Up @@ -317,6 +319,8 @@ public function index()

$_data = &$data;

$_data['module_version'] = self::VERSION_MODULE;

foreach ($text_strings as $text) {
$_data[$text] = $this->language->get($text);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<button type="button" id="icml" data-toggle="tooltip" title="{{ text_button_catalog }}" class="btn btn-success"><i class="fa fa-file-text-o"></i></button>
<button type="submit" form="form-module" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></button>
<a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
<h1>{{ heading_title }}</h1>
<h1>{{ heading_title }} {{ module_version }}</h1>
<ul class="breadcrumb">
{% for breadcrumb in breadcrumbs %}
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
Expand Down

0 comments on commit d5f29dc

Please sign in to comment.