1
Older versions / Template Object Tags and Linked Objects are ignored
« on: August 21, 2009, 11:50:45 am »
When adding a task to a template, all the tags and linked objects are ignored.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Error (DBQueryError)
Query failed with message 'Unknown column 'Array' in 'where clause''
Error params:
File: /my/path/to/opengoo/environment/library/database/adapters/AbstractDBAdapter.class.php
Line: 386
Sql: SELECT * FROM `og_application_logs` WHERE `is_private` <= '1' AND `is_silent` <= '1' AND `id` IN (SELECT `object_id` FROM `og_workspace_objects` WHERE `object_manager` = 'ApplicationLogs' AND `workspace_id` IN (Array)) ORDER BY `created_on` DESC LIMIT 0, 50
Error number: 1054
Error message: Unknown column 'Array' in 'where clause'
Backtrace:
#0 /my/path/to/opengoo/environment/library/database/adapters/AbstractDBAdapter.class.php(304): AbstractDBAdapter->prepareAndExecute('SELECT * FROM `...', NULL)
#1 /my/path/to/opengoo/environment/library/database/DB.class.php(209): AbstractDBAdapter->executeAll('SELECT * FROM `...', NULL)
#2 /my/path/to/opengoo/environment/classes/dataaccess/DataManager.class.php(242): DB::executeAll('SELECT * FROM `...')
#3 /my/path/to/opengoo/application/models/application_logs/base/BaseApplicationLogs.class.php(114): DataManager->find(Array)
#4 /my/path/to/opengoo/environment/classes/dataaccess/DataManager.class.php(270): BaseApplicationLogs->find(Array)
#5 /my/path/to/opengoo/application/models/application_logs/base/BaseApplicationLogs.class.php(131): DataManager->findAll(Array)
#6 /my/path/to/opengoo/application/models/application_logs/base/BaseApplicationLogs.class.php(133): BaseApplicationLogs->findAll(Array)
#7 /my/path/to/opengoo/application/models/application_logs/ApplicationLogs.class.php(213): BaseApplicationLogs::findAll(Array)
#8 /my/path/to/opengoo/application/controllers/FeedController.class.php(92): ApplicationLogs::getOverallLogs(true, true, Array, 50)
#9 /my/path/to/opengoo/environment/classes/controller/Controller.class.php(76): FeedController->project_activities()
#10 /my/path/to/opengoo/environment/classes/controller/PageController.class.php(62): Controller->execute('project_activit...')
#11 /my/path/to/opengoo/environment/classes/Env.class.php(173): PageController->execute('project_activit...')
#12 /my/path/to/opengoo/init.php(149): Env::executeAction('feed', 'project_activit...')
#13 /my/path/to/opengoo/index.php(9): require('/var/home/openg...')
#14 {main}
Autoglobal varibles:
$_GET: Array (
['c'] => (string) 'feed'
['a'] => (string) 'project_activities'
['id'] => (string) '1'
['token'] => (string) 'c49649dccdb7e1379abe2b4f4e9e35d60ca22821'
['project'] => (string) '2'
)
$_POST:
$_COOKIE: Array (
['__utma'] => (string) '166054271.539558655037944960.1242903145.1248682865.1248697052.7'
['__utmz'] => (string) '166054271.1242903145.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'
['PHPSESSID'] => (string) 'f26a35285a92cce365aff925a5bb7776'
['id'] => (string) '1'
['token'] => (string) 'c49649dccdb7e1379abe2b4f4e9e35d60ca22821'
)
$_SESSION:
Execution time:
Total execution time: 0.11999702453613 seconds
<?php
class TemplateController extends ApplicationController {
function __construct() {
parent::__construct();
prepare_company_website_controller($this, 'website');
ajx_set_panel("administration");
// Access permissios
if(!logged_user()->isCompanyAdmin(owner_company())) {
flash_error(lang('no access permissions'));
ajx_current("empty");
} // if
}
function index() {
-- if (!can_manage_templates(logged_user())) {
++ if (!can_manage_templates(logged_user(),true)) {
flash_error(lang("no access permissions"));
ajx_current("empty");
return;
}
tpl_assign('templates', COTemplates::findAll());
}
function add() {
-- if (!logged_user()->getCanManageTemplates()) {
++ if(!can_manage_templates(logged_user(),true)){
++ const CONST_MANAGER_GROUP_ID = 10000001;
-- $this->is_administrator = GroupUsers::isUserInGroup($this->getId(),Group::CONST_ADMIN_GROUP_ID );
++ $this->is_administrator = GroupUsers::isUserInGroup($this->getId(),Group::CONST_ADMIN_GROUP_ID ) ||
GroupUsers::isUserInGroup($this->getId(),Group::CONST_MANAGER_GROUP_ID );
public\assets\javascript\og\tasks\drawing.js
line 8:
+
+ var no_of_tasks = 20;
line 152:
- if (i == 8){ //Draw expander if group has more than 8 tasks
+ if (i == no_of_tasks){ //Draw expander if group has more than 8 tasks
line 158:
- for (var j = 8; j < group.group_tasks.length; j++)
+ for (var j = no_of_tasks; j < group.group_tasks.length; j++)
line 214:
- for (var i = 8; i < group.group_tasks.length; i++)
+ for (var i = no_of_tasks; i < group.group_tasks.length; i++)