Pierre Goiffon
ef0b0f88c9
Merge remote-tracking branch 'origin/support/3.0' into develop
...
# Conflicts:
# sources/Core/Email/EmailSwiftMailer.php
# tests/php-unit-tests/integration-tests/DictionariesConsistencyTest.php
# tests/php-unit-tests/postbuild_integration.xml.dist
2023-07-06 17:11:10 +02:00
Pierre Goiffon
a010239efb
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
2023-07-06 15:48:42 +02:00
Stephen Abello
aa1834170b
N°6427 - Fix SwiftMailer not retrieving sendmail path
2023-07-06 14:31:54 +02:00
Stephen Abello
3048c8c41f
N°5560 - Display an error when trying to regenerate an expired OAuth token
2023-07-06 09:52:00 +02:00
Benjamin Dalsass
e654daf4a5
N°6516 - Add @experimental PHP annotation on temporary objects features
2023-07-05 14:24:05 +02:00
bdalsass
9d38b4d1d6
N°6043 - Booking: Add prerequisites in iTop core - CRUD extensibility ( #520 )
2023-07-04 16:22:53 +02:00
Stephen Abello
c30da57818
N°6488 - Fix object keyboard shortcut not working anymore due to summary cards stealing its shortcuts
2023-07-03 11:50:12 +02:00
Pierre Goiffon
e36b9eb664
N°6414 Make AbstractSimpleField::Validate final
...
We don't have any overrides remaining anymore
2023-07-03 11:30:04 +02:00
Pierre Goiffon
6cc2d49cd5
N°6414 Move existing AbstractSimpleField::Validate impl to custom validators
...
- LinkedSetField
- SelectObjectField
- MultipleChoicesField (warning this hierarchy contains non multiple value fields like SelectField !)
Also change AbstractValidator::Validate signature : now we are returning an array of error messages, so that we can return multiple ones
2023-07-03 11:30:04 +02:00
Pierre Goiffon
d085f15b6d
N°6414 Separate SubFormField and Scalar fields
...
This will help to set methods as final, as SubFormField is often the sole one to have a real custom impl
2023-07-03 11:30:04 +02:00
Pierre Goiffon
6606af71ff
N°6414 Validator refactoring
...
New AbstractValidator class, with new method Validate
All existing validators are now children of AbstractRegexpValidator
Handle validators JS counterparts in renderers : only regexp validators are implemented client side
2023-07-03 11:30:04 +02:00
Pierre Goiffon
52049b7837
N°6414 Disable Field validation for untouched attcodes
2023-07-03 11:30:04 +02:00
Pierre Goiffon
f40674ec85
N°6414 Replace SelectObjectField::VerifyCurrentValue by ResetCurrentValueIfNotAmongAllowedValues
2023-07-03 11:30:04 +02:00
bdalsass
b46d4db8ff
N°6476 - Revert datamodel / compiler changes from N°5563 ( #515 )
2023-06-29 15:11:30 +02:00
Molkobain
71704404d0
N°5945 - Apply same explicit value comparison as previous commit
2023-06-28 10:19:07 +02:00
Molkobain
3c8bea8921
N°5945 - Fix "menu" option in dashlet list having no effect since relations refactoring
2023-06-28 10:11:51 +02:00
Stephen Abello
ccf1d7ecfb
N°6446 Fix OAuth landing page missing jQuery library needed in ajax calls
2023-06-27 11:24:06 +02:00
Stephen Abello
178e82a039
N°6446 Replace jQuery with vanilla JS in ajax dictionaries
2023-06-27 11:24:06 +02:00
Molkobain
7fc46fbc50
N°6472 - Fix empty tables in "Progress" tab of a survey
2023-06-27 10:36:30 +02:00
Eric Espie
c3469e43bc
N°6408 - Add logs, changed modification test of current object and prevent calling OnDBUpdate() when object is not modified
2023-06-23 17:02:31 +02:00
Molkobain
83564849e0
N°6356 - Search, SELECT on class with a single field display the count and an empty list
2023-06-22 20:18:18 +02:00
Molkobain
1a5ffc23ce
N°6251 - Fix dynamic property declaration
2023-06-19 14:47:06 +02:00
Benjamin Dalsass
0ece69112a
N°6416 - In user portal, empty ext key drop down doesn't display error message anymore
...
Fix wrong jquery element resulting in select all form field instead of links elements
2023-06-15 08:37:03 +02:00
Benjamin Dalsass
578f2dfa8e
N°3190 - Edit n:n LinkedSetIndirect in object details using a tagset-like widget
...
Add security if add option button js code isn't provided
2023-06-14 14:50:17 +02:00
Anne-Catherine
5185f721bd
N°5594 - Dashboard Bug with Group by (table) - iTop 3.0 ( #466 )
2023-06-14 11:06:25 +02:00
Pierre Goiffon
d0cad4d829
N°1150 Fix regression : cannot add caselog in the user portal
...
Was caused by field value check added in MultipleChoicesField and SelectObjectField in b71cd218
With this commit the checks are now only done if we have a ContextTag::TAG_REST
2023-06-13 12:34:46 +02:00
Pierre Goiffon
b3ef634d21
N°1150 SelectObjectField : factorize DBObjectSet retrieval between Validate and VerifyCurrentValue
2023-06-13 12:34:46 +02:00
Benjamin Dalsass
465388b5e3
N°803 - Allow display & edition of attributes on n:n relations on Portal
...
- Issue when selecting links rows with checkbox
- Change linked set field validation to prevent checking host id -1
2023-06-12 17:26:34 +02:00
Benjamin Dalsass
2041a6ad3f
N°803 - Allow display & edition of attributes on n:n relations on Portal
...
- Remove column mandatory information when object is in view mode
2023-06-09 10:40:24 +02:00
Benjamin Dalsass
c486aea299
N°803 - Allow display & edition of attributes on n:n relations on Portal
...
- Remove input when object is in view mode
- Improve form errors handling
- Prevent row selection when clicking input
- Attach date time picker to table instead of input to prevent popup truncating (popup will be visible but not aligned on the input)
2023-06-09 10:34:19 +02:00
Benjamin Dalsass
11c147574a
N°803 - Allow display & edition of attributes on n:n relations on Portal
2023-06-07 15:30:08 +02:00
Benjamin Dalsass
8eb1053daa
N°803 - Allow display & edition of attributes on n:n relations on Portal
2023-06-05 16:19:06 +02:00
Molkobain
f41879f0b1
N°6307 - Fix unappropriate confirm message when updating log on object edition
...
Proper fix as 345a8371 was temporary
2023-05-31 16:26:26 +02:00
Benjamin Dalsass
31a96d24dd
N°6219 - 1:n Read: tooltip, modal title and message on Add-Edit-Remove-Delete
2023-05-31 10:10:02 +02:00
Eric Espie
2c4c69fcfc
Fixed regression due to forcing camel case names in operation methods, now allow both camel case and snake case
2023-05-30 15:25:00 +02:00
acognet
649457bfc2
N°6308 - issue on displaying a userrequest list with Service_details fields with PHP 8
2023-05-26 00:25:42 +02:00
Pierre Goiffon
4038d4d925
N°6314 N°1150 Fix cannot reopen or close a UR in the user portal
...
Since introduction of MultipleChoicesField and SelectObjectField value checks with b71cd218 , when a portal user was trying to do an action on a resolved UR the agent_id field was rejected. The reason for the rejection is the corresponding SelectObjectField query is containing the portal user scopes (query generated in ObjectFormManager::Build), and of course the agent_id set isn't in this scope...
As a workaround we are disabling those checks for read only fields (values are set server side and possibly in a different context than the portal user)
2023-05-16 17:54:24 +02:00
Eric Espie
ad25d8823f
Add EVENT_DB_BEFORE_CREATE and EVENT_DB_BEFORE_UPDATE events in CRUD calls
2023-05-16 15:52:02 +02:00
Eric Espie
cda51c67c5
Fix warning
2023-05-15 11:46:25 +02:00
Eric Espie
940118967c
Move event declaration where the object is defined
2023-05-15 09:33:53 +02:00
Pierre Goiffon
b71cd2182f
N°1150 Add value checks in MultipleChoicesField and SelectObjectField
...
Now current value is checked against list of possible values
2023-05-12 10:59:33 +02:00
Stephen Abello
5219541b74
N°6154 Fix some classes names hardcoded in dict entries and calls MetaModel GetName instead of hardcoded dict entry
2023-05-10 10:03:02 +02:00
Eric Espie
f1d1aa8833
Fixed regression due to forcing camel case names in operation methods, now allow both camel case and snake case
2023-05-05 14:55:45 +02:00
bdalsass
b9cfb62d1a
N°6251 - 1:n - Actions must not be proposed to user not allowed ( #491 )
2023-05-05 14:28:37 +02:00
Molkobain
53e2d1103a
Improve PHPDoc and type hints
2023-05-04 23:16:14 +02:00
Molkobain
8dc7d68b8c
N°5890 - Use leave handler in backoffice forms to better handle leave confirmation message with multiple forms in a single page
2023-05-04 22:15:10 +02:00
Eric Espie
4f6e74a3ee
N°2250 - DisplayObject with ormLinkSet ignore Removed
2023-05-04 11:01:51 +02:00
Benjamin Dalsass
27d9d6a822
N°6154 - n:n Read - tooltip, buttons tooltips on edit widgets
2023-05-03 12:42:45 +02:00
bdalsass
e16a32bad2
Feature/6154 - Change dict key ( #490 )
2023-05-03 09:47:56 +02:00
Molkobain
99376225de
Improve PHPDoc
2023-05-03 09:46:45 +02:00