Commit Graph
31 Commits
Author SHA1 Message Date
Andrea Piovanelli d943fbd83e Added StringComparer and forced lowercase where needed to ensure matching paths to ignore casing. (#8743) 2024-01-19 10:29:52 +01:00
Andrea Piovanelli 03884cbd64 Lazy field loading using content item ContentManager instead of the injected one. (#8725)
* Lazy field loading using content item ContentManager instead of the injected one.

* Removed unused _contentManager variable
2023-10-27 09:22:24 +02:00
Andrea PiovanelliandMatteo Piovanelli 0b001c76c2 Added flag to display a single model error for MediaLibraryPickerField (#8700)
* Added flag to display model error by LocalizationExtensionHandler if media have been removed from the field only. This ensures that no duplicate model error has displayed.

* Restored formatting for else branches

---------

Co-authored-by: Matteo Piovanelli <MatteoPiovanelli-Laser@users.noreply.github.com>
2023-06-30 08:49:20 +02:00
Andrea Piovanelli bf0c71c4f0 Added lock on md5 variable to avoid concurrent hash generations for feature list. (#8697) 2023-06-19 10:04:24 +02:00
Andrea Piovanelli 0485e44378 filterTaxonomyCulture function is now named with a proper unique name, based on part and field (#8702)
* Checked back previously selected terms after replacing the TaxonomyField markup.

* Checkbox reset before checking back selected items.

* Javascript functions to refresh localized terms are now named to be unique. For this purpose, added PartName property to LocalizedTaxonomiesViewModel.

* Code refactoring: added variables for part-field differentiator and function name.
2023-06-19 10:02:08 +02:00
Andrea Piovanelli 55ec9e2335 No term selection option in TaxonomyField (#8667)
* Added no term selection option when taxonomy field is not required and is set to be shown as a radio button set (single choice without autocomplete)

* Correctly checked the "no selection" option when SingleTermId == 0.
2023-04-21 08:53:55 +02:00
Andrea Piovanelli ff70011b69 Added null check on taxonomyPart. (#8664) 2023-04-07 15:06:25 +02:00
Andrea Piovanelli 4455c66a64 Avoid SingleTermId being null if at least one term is checked (#8662)
* If no term with the proper culture is found, SingleTermId is the id of the first valid checked term.

* Correction on firstTermForCulture query if there is no LocalizationPart.
Simplified query to check selected terms.
2023-03-31 09:44:26 +02:00
Andrea Piovanelli 10e5078956 Corrected RoleEvent actions to match activity outcomes (RoleRenamed -> Renamed, RoleCreated -> Created, RoleRemoved -> Removed) (#8659) 2023-03-31 09:43:29 +02:00
Andrea Piovanelli 049b4a8f35 Changed cache options labels (for clarity) (#8651) 2023-03-17 09:12:50 +01:00
Andrea Piovanelli 7ac17272d2 If MenuPart is a ContentMenuItem, check if the content is published before adding it to the NavigationBuilder. (#8653) 2023-03-17 09:11:09 +01:00
Andrea Piovanelli daacecd971 Null check on menu before adding alternates with menu name and level (#8655) 2023-03-17 09:00:58 +01:00
Andrea Piovanelli 9728831556 8657 roleactivities: adds role event activities and handlers for workflows (#8658)
* Added Role Event Activities and Handlers for workflows.

* Removed and sorted using

* Added user as the Content parameter for worflow triggers when possible (UserAdded and UserRemoved role events).
2023-03-17 08:59:24 +01:00
Andrea Piovanelli babe1d665d Added sequential upload parameter to fileupload() parameters when importing media (#8650)
* Added sequential upload parameter to fileupload() parameters when importing media.

* Added setting to limit concurrent uploads
2023-02-27 08:43:53 +01:00
Andrea Piovanelli eed4a6a11b Checked page parameter to ensure a integer numeric value is provided. (#8644) 2023-01-13 09:00:54 +01:00
Andrea Piovanelli ab7ebd65c9 Logon crash when checking if password is expired (#8624)
* Added null check for last password change date. If that is null, use user date creation to check for password expiration.

* Added nullable date checks in AccountController ChangeExpiredPassword action too.
2022-09-30 09:00:00 +02:00
Andrea Piovanelliandmatteo.piovanelli ddc56c8baa Moved logic for max file path length in file storage provider (#8603)
Co-authored-by: matteo.piovanelli <matteo.piovanelli@laser-group.com>
2022-09-05 09:01:30 +02:00
Andrea Piovanelli 343ceb777b 8599 nullable field values (#8600)
* Added nullable type to DescribeMemberContext for BooleanField and NumericField.

* Rollback of nullable member value for NumericFieldDriver, which is unnecessary because Editor function doesn't let a null value to be saved.
2022-07-15 08:38:03 +02:00
Andrea Piovanelli c38e6814a9 Feature/blogposts search (#8570) 2022-07-08 16:51:07 +02:00
Andrea Piovanelliandmatteo.piovanelli 9f37c23dd7 allow RecipeManager to affect execution timeout (#8572)
Co-authored-by: matteo.piovanelli <matteo.piovanelli@laser-group.com>
2022-06-17 08:51:25 +02:00
Andrea Piovanelli 64fad63e02 Fixed search function when searching inside the "Recent" folder. (#8568) 2022-06-17 08:51:10 +02:00
Andrea Piovanelli f161693d52 Moved ShapeTracing js includes at head (#8560) 2022-06-17 08:50:56 +02:00
Andrea Piovanelli 520dc06b46 8557 check valid taxonomy (#8558)
* Added checks on taxonomyId validity (it needs to be > 0) before executing queries that would return no result.

* Added id check on GetTaxonomy(int id) functions.

* Added id check on GetTerm(int id)

* Removed id check on GetTaxonomy(int) function to avoid changing previous behaviour.

* Returned "Array.Empty" instead of "new List" where an empty list must be returned.
2022-06-17 08:50:43 +02:00
Andrea Piovanelli aff9b2542c Fix to replace media when original file has been deleted from filesystem (#8555)
* Added statuses management instead of notifier when catching file not found exception

# Conflicts:
#	src/Orchard.Web/Modules/Orchard.MediaLibrary/Controllers/ClientStorageController.cs

* Visual studio automatic code formatting.
2022-04-29 15:33:23 +02:00
Andrea Piovanelli 863d4a92a6 Layout elements cloning (#8538)
* Created a new element when session widget has a different container than the widget in the import context (to ensure actual cloning of the elements and not just adding a reference to the old element from the original container).

* Some comment has been rewritten for clarity
2022-03-18 12:27:11 +01:00
Andrea Piovanelli ffb56e684c 8541 password history (#8542)
* Added password history management to back office user password edit and made it working via IUserEventHandler calls.

* Added "password" parameter to "ChangedPassword" call.
2022-03-18 12:26:19 +01:00
Andrea Piovanelli 88a79cb768 Added LayoutSaving call to context in WidgetElementHarvester to properly update the container of widgets. (#8534) 2022-02-09 10:20:30 +01:00
Andrea Piovanelli 987291c3cf Fixed various typos: (#8512) 2021-10-29 08:39:38 +02:00
Andrea Piovanelli be55aad08a Fixed various typos: (#8513) 2021-10-25 09:21:00 +02:00
Andrea Piovanelli a8de3afc0f Fix/editmenulink (#8515)
* Removed useless spaces

* Corrections on ProjectionPart query link (it didn't update the link when changing the selected query).
Added edit link for menu in MenuWidget.

* Added menuId parameter to menu edit link
2021-10-25 09:19:50 +02:00
Andrea Piovanelli e447561cfe HtmlDecode token (#8501)
Added HtmlDecode token management.
Needed for #8500
2021-09-10 08:52:11 +02:00