Skip to content

Commit

Permalink
Merge branch 'release/1.12.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Apr 28, 2021
2 parents 5cc4aed + 9ea2932 commit d36cc9a
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 32 deletions.
60 changes: 30 additions & 30 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inc/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ static function prepareHtmlFields($fields, $items_id, $itemtype, $canedit = true
}

//get default value
if ($value === "" && $field['default_value'] !== "") {
if ($value === "" && $field['default_value'] !== "" && $itemtype::isNewID($items_id)) {
$value = $field['default_value'];

// shortcut for date/datetime
Expand Down
5 changes: 5 additions & 0 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ Il existe un [script de migration](https://github.com/pluginsGLPI/customfields/b
<author>Johan Cwiklinski</author>
</authors>
<versions>
<version>
<num>1.12.5</num>
<compatibility>~9.5.0</compatibility>
<download_url>https://github.com/pluginsGLPI/fields/releases/download/1.12.5/glpi-fields-1.12.5.tar.bz2</download_url>
</version>
<version>
<num>1.12.4</num>
<compatibility>~9.5.0</compatibility>
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
--------------------------------------------------------------------------
*/

define ('PLUGIN_FIELDS_VERSION', '1.12.4');
define ('PLUGIN_FIELDS_VERSION', '1.12.5');

// Minimal GLPI version, inclusive
define("PLUGIN_FIELDS_MIN_GLPI", "9.5");
Expand Down

0 comments on commit d36cc9a

Please sign in to comment.