ref #92633 Display module version (#263)

This commit is contained in:
Kocmonavtik 2023-11-23 11:10:52 +03:00 committed by GitHub
parent 3a30986e4b
commit d5f29dc5fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 20 deletions

View File

@ -26,15 +26,6 @@ jobs:
strategy: strategy:
matrix: matrix:
include: 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' - php-version: '7.3'
test-suite: '3' test-suite: '3'
oc: '3.0.1.1' oc: '3.0.1.1'
@ -71,15 +62,6 @@ jobs:
- php-version: '7.3' - php-version: '7.3'
test-suite: '3' test-suite: '3'
oc: '3.0.3.8' 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' - php-version: '7.4'
test-suite: '3' test-suite: '3'
oc: '3.0.1.1' oc: '3.0.1.1'

View File

@ -1,3 +1,6 @@
## v4.1.15
* Display module version
## v4.1.14 ## v4.1.14
* Added currency validation when configuring the module * Added currency validation when configuring the module

View File

@ -1 +1 @@
4.1.14 4.1.15

6
doc/Update module.md Normal file
View File

@ -0,0 +1,6 @@
### Обновление версии модуля
Для обновления версии модуля необходимо обновить следующие файлы:
* VERSION
* CHANGELOG.md
* src/upload/admin/controller/extension/module/retailcrm.php

View File

@ -2,6 +2,8 @@
class ControllerExtensionModuleRetailcrm extends Controller class ControllerExtensionModuleRetailcrm extends Controller
{ {
const VERSION_MODULE = '4.1.15';
private $_error = []; private $_error = [];
protected $log, $statuses, $payments, $deliveryTypes, $retailcrmApiClient, $moduleTitle, $tokenTitle; protected $log, $statuses, $payments, $deliveryTypes, $retailcrmApiClient, $moduleTitle, $tokenTitle;
public $children, $template; public $children, $template;
@ -317,6 +319,8 @@ class ControllerExtensionModuleRetailcrm extends Controller
$_data = &$data; $_data = &$data;
$_data['module_version'] = self::VERSION_MODULE;
foreach ($text_strings as $text) { foreach ($text_strings as $text) {
$_data[$text] = $this->language->get($text); $_data[$text] = $this->language->get($text);
} }

View File

@ -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="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> <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> <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"> <ul class="breadcrumb">
{% for breadcrumb in breadcrumbs %} {% for breadcrumb in breadcrumbs %}
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li> <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>