[Xerte-dev] Re: testing sharing and giving

Ron Mitchell ronm at mitchellmedia.co.uk
Tue Jul 24 18:59:23 BST 2012


The relevant section of code in change_owner.php seems to be the following

$query="update " . $xerte_toolkits_site->database_table_prefix .
"templaterights set user_id=\"" . $_POST['new_user'] . "\", folder_id=\"" .
$row_folder['folder_id'] . "\" where template_id =\"" .
$_POST['template_id'] . "\" and role=\"creator\"";

and in management.js
xmlHttp.send('template_id=' + template_id + '&new_user=' + login);

is the latter correct?

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
Sent: 24 July 2012 17:47
To: For Xerte technical developers
Subject: [Xerte-dev] Re: testing sharing and giving

the query i updated (see diff) should also set folder_id, maybe I messed the
name of the parameter up (but it is definitely in the code)

On Tue, Jul 24, 2012 at 5:46 PM, Ron Mitchell <ronm at mitchellmedia.co.uk>
wrote:
> so perhaps that's not being changed by the change ownership code?
> I changed the value direct in the db and refreshed and then the 
> project appeared.
>
> -----Original Message-----
> From: xerte-dev-bounces at lists.nottingham.ac.uk
> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat 
> Lockley
> Sent: 24 July 2012 17:39
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: testing sharing and giving
>
> it should be the folder id of the root folder for that user
>
> On Tue, Jul 24, 2012 at 5:37 PM, Ron Mitchell 
> <ronm at mitchellmedia.co.uk>
> wrote:
>> Hi
>>
>> I've been re-testing sharing and giving on both the techdis 1.8 
>> install and a local xampp install
>>
>>
>>
>> sharing works fine
>>
>> giving works fine
>>
>>
>>
>> changing ownership via managment.php still doesn't work.
>>
>>
>>
>> Pat the revision 403 change you committed yesterday seems to rename 
>> the project folder correctly but the project still doesn't appear in 
>> the new owners workspace. What does the folder value in the 
>> templaterights table represent? In my test of changing ownership that 
>> value equalled 5. I then created a new project logged in as the 
>> intended recipient and that value equalled 13. So I changed 5 to 13 
>> in for the given project and then after refresh it appeared in that 
>> users
> workspace.
>>
>>
>>
>> HTH
>>
>> Ron
>>
>>
>> This message and any attachment are intended solely for the addressee 
>> and may contain confidential information. If you have received this 
>> message in error, please send it back to me, and immediately delete 
>> it. Please do not use, copy or disclose the information contained in 
>> this message or in any attachment. Any views or opinions expressed by 
>> the author of this email do not necessarily reflect the views of the
> University of Nottingham.
>>
>> This message has been checked for viruses but the contents of an 
>> attachment may still contain software viruses which could damage your
> computer system:
>> you are advised to perform your own checks. Email communications with 
>> the University of Nottingham may be monitored as permitted by UK
> legislation.
>>
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>> This message and any attachment are intended solely for the addressee 
>> and may contain confidential information. If you have received this
> message in
>> error, please send it back to me, and immediately delete it.   Please do
> not
>> use, copy or disclose the information contained in this message or in 
>> any attachment.  Any views or opinions expressed by the author of 
>> this email do not necessarily reflect the views of the University of
> Nottingham.
>>
>> This message has been checked for viruses but the contents of an 
>> attachment may still contain software viruses which could damage your
> computer system:
>> you are advised to perform your own checks. Email communications with 
>> the University of Nottingham may be monitored as permitted by UK
> legislation.
>>
>>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev




More information about the Xerte-dev mailing list