From 07a7fbbc6ab7ef52b1313c995322374c89095821 Mon Sep 17 00:00:00 2001 From: Nicola Galgano Date: Tue, 8 Sep 2015 08:49:37 +0200 Subject: [PATCH 1/2] installation fix on MSSQL testing this one #7832 i was unable to install pkg_weblinks on MSSQL the problem was that these fields (version,hits,modified_user_id,checked_out) was passed like a string instead of bigint --- src/com_weblinks/script.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com_weblinks/script.php b/src/com_weblinks/script.php index f42fb3d..c00f5c2 100644 --- a/src/com_weblinks/script.php +++ b/src/com_weblinks/script.php @@ -43,6 +43,10 @@ class Com_WeblinksInstallerScript $category->metadata = '{"author":"","robots":""}'; $category->language = '*'; $category->checked_out_time = JFactory::getDbo()->getNullDate(); + $category->version = 1; + $category->hits = 0; + $category->modified_user_id=0; + $category->checked_out=0; // Set the location in the tree $category->setLocation(1, 'last-child'); From 8717ae772029564dbc15618036ff0922321487b3 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Tue, 8 Sep 2015 11:59:05 +0200 Subject: [PATCH 2/2] CS --- src/com_weblinks/script.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com_weblinks/script.php b/src/com_weblinks/script.php index c00f5c2..e5a249e 100644 --- a/src/com_weblinks/script.php +++ b/src/com_weblinks/script.php @@ -45,8 +45,8 @@ class Com_WeblinksInstallerScript $category->checked_out_time = JFactory::getDbo()->getNullDate(); $category->version = 1; $category->hits = 0; - $category->modified_user_id=0; - $category->checked_out=0; + $category->modified_user_id = 0; + $category->checked_out = 0; // Set the location in the tree $category->setLocation(1, 'last-child');