mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Merge remote-tracking branch 'origin/support/3.2' into develop
This commit is contained in:
@@ -2609,6 +2609,13 @@ JS
|
||||
$iFieldSize = $oAttDef->GetMaxSize();
|
||||
if ($aAllowedValues !== null)
|
||||
{
|
||||
|
||||
// convert AttributeBoolean value due to issue with radio style when value is false
|
||||
// @see N°2443 - Boolean don't accept yes/no value
|
||||
if($oAttDef instanceof AttributeBoolean){
|
||||
$value = $value === false ? 0 : 1;
|
||||
}
|
||||
|
||||
// Discrete list of values, use a SELECT or RADIO buttons depending on the config
|
||||
$sDisplayStyle = $oAttDef->GetDisplayStyle();
|
||||
switch ($sDisplayStyle)
|
||||
|
||||
@@ -2226,8 +2226,8 @@ SQL;
|
||||
|
||||
$fScale = min($iMaxImageWidth / $iWidth, $iMaxImageHeight / $iHeight);
|
||||
|
||||
$iNewWidth = $iWidth * $fScale;
|
||||
$iNewHeight = $iHeight * $fScale;
|
||||
$iNewWidth = floor($iWidth * $fScale);
|
||||
$iNewHeight = floor($iHeight * $fScale);
|
||||
|
||||
$new = imagecreatetruecolor($iNewWidth, $iNewHeight);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user