Merge remote-tracking branch 'origin/support/3.2' into develop

This commit is contained in:
Pierre Goiffon
2024-03-12 17:44:49 +01:00
3 changed files with 24 additions and 12 deletions

View File

@@ -2319,16 +2319,17 @@ abstract class DBObject implements iDisplay
} }
/** /**
* @param array $aUniquenessRuleProperties uniqueness rule properties
*
* @param string $sUniquenessRuleId uniqueness rule ID
* @return \DBSearch
* @throws \OQLException
* @throws \CoreException
*
* @internal * @internal
* *
* @param string $sUniquenessRuleId uniqueness rule ID * @since 2.6.0 N°659 uniqueness constraint
* @param array $aUniquenessRuleProperties uniqueness rule properties * @since 2.7.11 3.1.2 3.2.0 N°4314 Fix Uniqueness rules not working with Silo
*
* @return \DBSearch
* @throws \CoreException
* @throws \OQLException
* @since 2.6.0 N°659 uniqueness constraint
* @api
*/ */
protected function GetSearchForUniquenessRule($sUniquenessRuleId, $aUniquenessRuleProperties) protected function GetSearchForUniquenessRule($sUniquenessRuleId, $aUniquenessRuleProperties)
{ {

View File

@@ -20,8 +20,6 @@
Dict::Add('EN US', 'English', 'English', array( Dict::Add('EN US', 'English', 'English', array(
'UI:NotificationsCenter:Page:Title' => 'Notifications center', 'UI:NotificationsCenter:Page:Title' => 'Notifications center',
'UI:NotificationsCenter:Panel:Title' => 'Notifications center', 'UI:NotificationsCenter:Panel:Title' => 'Notifications center',
'UI:NotificationsCenter:Panel:SubTitle' => 'Manage your notifications subscriptions. For more granularity, you can also manage individual subscriptions using the <a href="%1$s">advanced mode</a>.',
'UI:NotificationsCenter:Panel:Advanced:SubTitle' => 'Manage your notifications subscriptions individually. To manage your subscriptions by type, use the <a href="%1$s">standard mode</a>.',
'UI:NotificationsCenter:Panel:Table:Channels' => 'Channels.', 'UI:NotificationsCenter:Panel:Table:Channels' => 'Channels.',
'UI:NotificationsCenter:Unsubscribe:Success' => 'You have been successfully unsubscribed from the selected notifications.', 'UI:NotificationsCenter:Unsubscribe:Success' => 'You have been successfully unsubscribed from the selected notifications.',
'UI:NotificationsCenter:Unsubscribe:Error' => 'An error occurred while unsubscribing from the selected notifications.', 'UI:NotificationsCenter:Unsubscribe:Error' => 'An error occurred while unsubscribing from the selected notifications.',

View File

@@ -583,6 +583,7 @@ abstract class Controller extends AbstractController
* @api * @api
* *
* @param string $sScript Script path to link * @param string $sScript Script path to link
* @since 3.2.0 $sScript must be absolute URI
*/ */
public function AddLinkedScript($sScript) public function AddLinkedScript($sScript)
{ {
@@ -595,6 +596,7 @@ abstract class Controller extends AbstractController
* @api * @api
* *
* @param string $sStylesheet Stylesheet path to link * @param string $sStylesheet Stylesheet path to link
* @since 3.2.0 $sScript must be absolute URI
*/ */
public function AddLinkedStylesheet($sStylesheet) public function AddLinkedStylesheet($sStylesheet)
{ {
@@ -769,12 +771,23 @@ abstract class Controller extends AbstractController
private function AddLinkedScriptToPage($sLinkedScript) private function AddLinkedScriptToPage($sLinkedScript)
{ {
$this->m_oPage->add_linked_script($sLinkedScript); // iTop 3.1 and older compatibility, if not an URI we don't know if its relative to app root or module root
if (strpos($sLinkedScript, "://") === false) {
$this->m_oPage->add_linked_script($sLinkedScript);
return;
}
$this->m_oPage->LinkScriptFromURI($sLinkedScript);
} }
private function AddLinkedStylesheetToPage($sLinkedStylesheet) private function AddLinkedStylesheetToPage($sLinkedStylesheet)
{ {
$this->m_oPage->add_linked_stylesheet($sLinkedStylesheet); // iTop 3.1 and older compatibility, if not an URI we don't know if its relative to app root or module root
if (strpos($sLinkedStylesheet, "://") === false) {
$this->m_oPage->add_linked_stylesheet($sLinkedStylesheet);
}
$this->m_oPage->LinkStylesheetFromURI($sLinkedStylesheet);
} }
private function AddStyleToPage($sStyle) private function AddStyleToPage($sStyle)