Benjamin Dalsass
2b84c0384d
N°5085 - Move menu is impossible - Error after compilation
2022-08-31 15:31:00 +02:00
Eric Espie
cc7dceed1a
Merge remote-tracking branch 'origin/support/3.0' into develop
2022-08-09 17:42:23 +02:00
Eric Espié
69749a5cbe
N°5375 - XML custo on Semantic field with hierarchy, breaks at compilation ( #323 )
2022-08-09 17:37:01 +02:00
Molkobain
8c27476d2a
N°4517 - PHP 8.1: Fix trim() called with null value
2022-07-28 11:52:28 +02:00
Molkobain
d4a0c141b3
#296 Fix typos
2022-07-27 10:35:37 +02:00
Pierre Goiffon
784e553d23
Merge remote-tracking branch 'origin/support/3.0' into develop
...
# Conflicts:
# composer.json
# composer.lock
# lib/composer/autoload_classmap.php
# lib/composer/autoload_files.php
# lib/composer/autoload_real.php
# lib/composer/autoload_static.php
# lib/composer/installed.php
2022-06-28 11:10:01 +02:00
acognet
93a69cbc49
N°5108 - Update embedded libs for PHP 8.0 (3.0 branch)
2022-06-27 23:38:58 +02:00
Pierre Goiffon
abb13b70b9
Compiler : when generating model file add it to module ( #296 )
...
Before this fix, when creating a module for iTop that was creating PHP code (an iTop class for example, a snippet, ...) it was mandatory to add the model.php file in your module.php file ("datamodel" key). If you forgot this, then the compilation was completed OK but the result code wasn't included in iTop.
Now the compiler automatically adds the model.php file to the included files.
2022-06-15 18:07:16 +02:00
Pierre Goiffon
023ead39ec
N°4280 Handle modules with non existing model.*.php files imported ( #295 )
...
We were crashing iTop when having a module with :
* in the 'datamodel' key in the module.*.php file a 'model.*.php' declared
* no model.*.php file in the module sources
* no model.*.php generated after compilation
This behavior is improved :
* if isdevenv an exception will be thrown detailing which module is concerned
* else :
- model.*.php won't be added in iTop datamodel autoload
- a SetupLog::Error will be made
2022-06-15 17:20:13 +02:00
Molkobain
7bfa7fa9f4
N°2883 - Improve XML compiler robustness on branding logos
2022-05-09 14:32:03 +02:00
Molkobain
a4390fbb57
Merge remote-tracking branch 'origin/support/3.0' into develop
...
# Conflicts:
# test/application/search/CriterionConversionTest.php
# test/application/search/CriterionParserTest.php
# test/application/search/SearchFormTest.php
2022-04-25 14:03:02 +02:00
Benjamin Dalsass
dabd2a3f4d
N°5101 - Setup error when semantic field attribute code is not defined in current class
2022-04-20 14:32:03 +02:00
Stephen Abello
ba9d5f0c4b
N°3607 Handle error and fix unit test
2022-04-19 09:31:02 +02:00
Stephen Abello
0efc978004
N°3607 Change XML node format
2022-04-15 15:48:21 +02:00
Stephen Abello
26a78a10bc
N°3607 Allow extensions to register variables/stylesheets to be compiled with every theme
2022-04-12 10:23:50 +02:00
Molkobain
2716f9d24c
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
...
# Conflicts:
# core/config.class.inc.php
2022-04-08 13:30:42 +02:00
Pierre Goiffon
92997e3e57
💡 N°2498 add @since
2022-04-08 08:54:07 +02:00
Pierre Goiffon
2b1e583dc7
💡 N°4854 Document compiler behavior change for model.*.php files
2022-03-02 10:06:59 +01:00
Molkobain
fe1bf3bfc1
PHPDoc
2022-02-19 17:18:42 +01:00
acognet
bbd50ba73b
N°4438 - Disable (temporarly) copy of precompiled stylesheets after setup
2022-02-15 09:59:47 +01:00
Molkobain
bd67bc8838
N°3882 - Handle use of transparent colors in dynamic header dashlet
2021-10-01 11:48:05 +02:00
Molkobain
a11bc9ad33
N°3791 - Enable use of SCSS variables in the DM classes / (meta)enum attributes style
2021-09-26 16:53:42 +02:00
Molkobain
3214ae91c7
N°3791 - Panel: Use style defined in the DM for classes
...
Note that for now, semantic colors cannot be used directly in a <main_color> or <complementary_color> tag. Only valid CSS color (hexa, hsla, ...)
2021-09-26 15:15:34 +02:00
Molkobain
b15c8e30bc
N°3791 - Panel: Use style defined in the DM for classes
...
Note that for now, semantic colors cannot be used directly in a <main_color> or <complementary_color> tag. Only valid CSS color (hexa, hsla, ...)
2021-09-26 01:17:28 +02:00
Molkobain
75d913a003
Compiler: Factorize DM classes style and add them to the DM CSS rules
2021-09-25 23:51:52 +02:00
Molkobain
2b38c98183
Compiler: Update unit tests for DM classes / (meta)enum attributes style
2021-09-25 23:27:29 +02:00
Molkobain
ca7f6362bf
ormStyle: Fix icon URL including the app. root in the MetaModel to ease usage with load balancers
2021-09-25 17:00:50 +02:00
Molkobain
7404599721
N°3882 - Fix unit tests
2021-09-23 14:16:22 +02:00
Molkobain
eb8aed19c2
Code cleanup
2021-09-23 13:10:23 +02:00
Molkobain
99026cec1f
N°3882 - Compiler: Prepare unit test for DM CSS rules (needs to be completed with the team)
2021-09-23 11:44:12 +02:00
Molkobain
029d2ad526
N°3882 - Compiler: Factorize AttributeEnum/AttributeMetaEnum style compilation
2021-09-23 11:44:12 +02:00
Molkobain
1cb100b010
N°3882 - Header dynamic: Pills now shows the real color from the DM
2021-09-23 11:44:12 +02:00
Molkobain
e2b73995e1
N°3882 - Move DataModel classes fields' style to theme instead of (duplicated) inline CSS
2021-09-23 11:44:11 +02:00
acognet
ffe5541361
N°2259 - iTop Compilation of branding images ignore real format of source image
2021-09-23 09:19:55 +02:00
Pierre Goiffon
5f2323f10b
N°4092 Symlinks flag : now always update the flag
...
Before this commit we were only creating/removing the flag is the functionnality was available : but this was causing confusions !
2021-09-21 10:36:07 +02:00
Molkobain
df40b53b6b
Code format
2021-09-21 09:24:26 +02:00
acognet
61f6c1fe33
N°2259 - iTop Compilation of branding images ignore real format of source image
2021-09-17 16:36:40 +02:00
Molkobain
3980ba81e7
Fix typo
2021-09-08 12:33:19 +02:00
Molkobain
ad3e3195a8
Compiler: Add log message in case a profile (user rights) relies on a missing group
2021-09-08 10:58:00 +02:00
acognet
abe103eade
N°580 - Jean Dupont - Jean Dupont, auto-complete avec homonyme
2021-08-18 09:32:26 +02:00
Pierre Goiffon
9931fa1a6b
🎨 N°4092 rename method
...
Thanks @Molkobain !
2021-07-30 12:09:30 +02:00
Pierre Goiffon
83064d68c7
N°4092 Setup : symlink option now always displayed if functionality enabled
...
Previously we were also testing for flag presence.
In consequence the confirmation dialog when unchecking the option is also removed (we can enable back the option using the setup)
2021-07-29 17:24:20 +02:00
Eric
13b548e95d
N°4199 - Add <code> to EnumSet values to fix XML conversion
2021-07-28 14:39:52 +02:00
Pierre Goiffon
bd67b71f3d
Merge remote-tracking branch 'origin/support/2.7' into develop
2021-07-06 11:36:34 +02:00
Pierre Goiffon
d90b1a3d82
🐛 N°4020 Fix syntax error for PHP < 7.1
...
`syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /var/www/itop274/setup/compiler.class.inc.php on line 61`
Was added in 1059befa
2021-07-02 09:26:03 +02:00
Pierre Goiffon
aa9ab1ace5
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# css/css-variables.scss
# datamodels/2.x/authent-cas/module.authent-cas.php
# datamodels/2.x/authent-external/module.authent-external.php
# datamodels/2.x/authent-ldap/module.authent-ldap.php
# datamodels/2.x/authent-local/module.authent-local.php
# datamodels/2.x/combodo-db-tools/module.combodo-db-tools.php
# datamodels/2.x/itop-attachments/module.itop-attachments.php
# datamodels/2.x/itop-backup/module.itop-backup.php
# datamodels/2.x/itop-bridge-virtualization-storage/module.itop-bridge-virtualization-storage.php
# datamodels/2.x/itop-change-mgmt-itil/module.itop-change-mgmt-itil.php
# datamodels/2.x/itop-change-mgmt/module.itop-change-mgmt.php
# datamodels/2.x/itop-config-mgmt/module.itop-config-mgmt.php
# datamodels/2.x/itop-config/module.itop-config.php
# datamodels/2.x/itop-core-update/module.itop-core-update.php
# datamodels/2.x/itop-datacenter-mgmt/module.itop-datacenter-mgmt.php
# datamodels/2.x/itop-endusers-devices/module.itop-endusers-devices.php
# datamodels/2.x/itop-files-information/module.itop-files-information.php
# datamodels/2.x/itop-full-itil/module.itop-full-itil.php
# datamodels/2.x/itop-hub-connector/module.itop-hub-connector.php
# datamodels/2.x/itop-incident-mgmt-itil/module.itop-incident-mgmt-itil.php
# datamodels/2.x/itop-knownerror-mgmt/module.itop-knownerror-mgmt.php
# datamodels/2.x/itop-portal-base/module.itop-portal-base.php
# datamodels/2.x/itop-portal/module.itop-portal.php
# datamodels/2.x/itop-problem-mgmt/module.itop-problem-mgmt.php
# datamodels/2.x/itop-profiles-itil/module.itop-profiles-itil.php
# datamodels/2.x/itop-request-mgmt-itil/module.itop-request-mgmt-itil.php
# datamodels/2.x/itop-request-mgmt/module.itop-request-mgmt.php
# datamodels/2.x/itop-service-mgmt-provider/module.itop-service-mgmt-provider.php
# datamodels/2.x/itop-service-mgmt/module.itop-service-mgmt.php
# datamodels/2.x/itop-sla-computation/module.itop-sla-computation.php
# datamodels/2.x/itop-storage-mgmt/module.itop-storage-mgmt.php
# datamodels/2.x/itop-tickets/module.itop-tickets.php
# datamodels/2.x/itop-virtualization-mgmt/module.itop-virtualization-mgmt.php
# datamodels/2.x/itop-welcome-itil/module.itop-welcome-itil.php
# datamodels/2.x/version.xml
2021-06-29 16:12:49 +02:00
acognet
8b9589744b
N°4020 - timeout on updating the hierarchical key during setup - php 5.6 compatibility
2021-06-28 13:56:49 +02:00
Pierre Goiffon
2a1e0b7429
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# core/dbobject.class.php
# core/log.class.inc.php
# setup/compiler.class.inc.php
2021-06-28 08:58:34 +02:00
acognet
1059befa39
N°4020 - timeout on updating the hierarchical key during setup
2021-06-21 16:39:58 +02:00
Pierre Goiffon
c417a454d6
New symlink flag set by the compiler, new compile with symlinks checkbox in the setup ( #190 )
...
The flag consists of the new `data/.compilation-symlinks` file, which is included in the code base (but not available in the Combodo packages).
It will be used and generated if and only if :
* we are on a dev env (`\utils::IsDevelopmentEnvironment`)
* the `symlink` PHP function exists
The flag is generated low level in the compiler (\MFCompiler::DoCompile)
In the setup, if the flag is present and all conditions are met then a new option will be displayed in the "Miscellaneous Parameters" wizard step. When unchecking/checking the flag will be updated accordingly by an ajax query.
All other compiler consumers (Designer / Hub connectors, Core Update, scripts using `RunTimeEnvironment` class) will :
* if they provide a value for the symlink option, it will be used
* otherwise the flag will be used instead, if conditions are met
2021-06-14 16:44:34 +02:00