Posted by bunset-temp on February 13, 2011 at 6:46pm
Im logged in like admin.
I try to assign a task I create to some user. I only see -unassigned- in listbox.
How can I do?
Im logged in like admin.
I try to assign a task I create to some user. I only see -unassigned- in listbox.
How can I do?
Comments
Did you create people? You
Did you create people? You have to link a storm-person to a user before you can assign a task.
Or did you assign the project to somebody? sometimes, when you do that, you can not assign a task for that project to anybody else.
regards,
Done - Resolved
That is vantuykom, than, you very much.
I didnt create any people, I had disabled storm-person module.
Now I have enabled storm-person module and created some people, then I can assign tasks to them.
I didnt enable storm-person module because I didnt want people, just to be able to assign tasks to drupal users, but I see is not posible in storm.
For me, I need this:
An user register in drupal.
A person is automatically created, relation with drupal username is automatically created, and person username is the drupal username.
I dont like I have to manually assign a drupal user to a person. I need an automatize this process.
Create a module named
Create a module named "stormperson_by_user_registration"
stormperson_by_user_registration.info
name = Stormperson by user registrationdescription = Creates a new stormperson if a new user registers
dependencies[] = storm
dependencies[] = stormperson
core = "6.x"
php = 5.2
stormperson_by_user_registration.module
<?php
// $Id: $
/
* @file stormperson_by_user_registration.module
* creates a new stormperson if a new user registers
*/
/
* Implementation of hook_user()
*
* @return unknown_type
*/
function stormperson_by_user_registration_user($op, &$edit, &$account, $category = NULL) {
switch ($op) {
case 'insert':
stormperson_by_user_registration_create_new_stormperson($account);
break;
}
}
/**
* create a new stormperson
*
* @return unknown_type
*/
function stormperson_by_user_registration_create_new_stormperson($user) {
if (!empty($user)) {
$sql = 'SELECT user_uid ';
$sql .= 'FROM {stormperson} ';
$sql .= 'WHERE user_uid = %d ';
$result = db_result(db_query($sql, $user->uid));
if (empty($result)) {
$node = new stdClass();
$node->type = 'stormperson';
$node->status = 1;
$node->title = $user->name;
$node->uid = $user->uid;
$node->user_name = $user->name;
$node->fullname = $user->name;
$node->email = $user->mail;
$node->user_uid = $user->uid;
node_save($node);
}
}
}
Even with people, I cannot assign projects
I have a screen shot here:
https://lh5.googleusercontent.com/_xBzgfLvlm3E/TVlWu7v4WMI/AAAAAAAAGis/a...
so is the problem solved ? as
alright, you need to enable Storm Team module too to get the assigned to drop down working
Thank you very much for module you suggest Carsten Müller
Its fantastic.
I will be testing it and trying.
Thank you for your valuable helping.
subscribing
subscribing
fix
Enable teams