Project

General

Profile

Support #3785

Reminder before 1.8.8.4

Added by Yannick Warnier about 8 years ago. Updated about 8 years ago.

Status:
Bug resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
Start date:
06/08/2011
Due date:
08/08/2011
% Done:

100%

Estimated time:
2.00 h
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

  • review time shifting when creating an event very late at night or very early in the morning (spanning another day - seen on chamilodev after Julio's changes). The task delivery date is still not the one used in the calendar. It continues being the task creation date. This is wrong. (#3692)
  • review whether webservices by Marco Sousa have been inserted
  • review webservices update by drupal guy
  • review webservices by Latinux guy
  • review messaging from social network -> supposedly sent as anonymous user when originating from a specific user. At least, if sending with the campus e-mail address, the message (e-mail) should indicate who sent it as part of the body or the e-mail subject (it's better that way than sending it from the other user's e-mail directly, to avoid reverse-mx checking).
  • error in some questions copy (tried on chamilodev) (#3788)
  • questions cannot be copied in group (the checkboxes stuff does not seem to work) (#3789)
  • links to previous reports developed for Ricoh have disappeared (where are they???) (#3790)
  • in dashboard, I get an error for main/gradebook/lib/flatview_data_generator.class.php on line 211 about a division by 0 (#3791)
  • somehow in thematic advance, when adding a new date, the edition box does not appear anymore, and the value stored (and shown) is "null" (in text) (#3792)
  • Carlos says the period of visibility of a test does not use the timezone, which makes the period of visibility different from the period defined. - I can't reproduce this.
  • In homepage edition, it is impossible to upload a picture now (with the basic file manager). It says "Invalid directory /my_files (on http://campus.chamilo.org)

Files

slider.tgz (78.9 KB) slider.tgz Slider patch to be reviewed (look for "CEV" markers and remove useless JS and CSS) Yannick Warnier, 22/08/2011 09:18
CourseRestorer.class.php (85.4 KB) CourseRestorer.class.php Yannick Warnier, 22/08/2011 09:25

Associated revisions

Revision 1481d454 (diff)
Added by Julio Montoya about 8 years ago

Adding bxslider effect in the news list see #3785

Revision 0f6fed68 (diff)
Added by Julio Montoya about 8 years ago

Applying fixes in the Course Restorer class see #3785

Revision 0d396ef3 (diff)
Added by Julio Montoya about 8 years ago

Adding changes in CourseRestorer.class.php provided by Marc De Caluwé setting UTF8_CONVERT false by default see #3785

History

#1

Updated by Yannick Warnier about 8 years ago

  • Assignee deleted (Yannick Warnier)
#2

Updated by Yannick Warnier about 8 years ago

Forgot to add LocalTimeUsingPortalTimezoneXIsY

Check CertificateOnlineLink

#3

Updated by Yannick Warnier about 8 years ago

  • % Done changed from 0 to 60
#4

Updated by Yannick Warnier about 8 years ago

#6

Updated by Yannick Warnier about 8 years ago

Review CourseRestorer class with i18n patch from Marc De Caluwé (attached)

#7

Updated by Yannick Warnier about 8 years ago

Translate "StartTest"

#9

Updated by Julio Montoya about 8 years ago

  • Status changed from Assigned to Needs more info

bxslider effect added in the index.php, I have a question: the /news_list.php page is now useless?? We should remove it?

http://code.google.com/p/chamilo/source/detail?r=37fe71a0599add10db0c830d1f2285990243713a&repo=classic

#11

Updated by Julio Montoya about 8 years ago

There are a lot of changes in the webservices I will invest a lot of time trying to understand the code and make it work with drupal? Need feedback what to do here. Basically there are changes of this sort:

New version: namespace, soapaction, style, use, and documentation variables added:

$s->register(
    'WSCourse.DeleteCourse',
    array('secret_key' => 'xsd:string', 'course_id_field_name' => 'xsd:string', 'course_id_value' => 'xsd:string'),
    array(),
    'urn:WSService',                               // namespace
    'urn:WSService#WSCourse.DeleteCourse',         // soapaction
    'rpc',                                         // style
    'encoded',                                     // use
    'Delete a course in chamilo'                   // documentation

);

Old version

$s->register(
    'WSCourse.DeleteCourse',
    array('secret_key' => 'xsd:string', 'course_id_field_name' => 'xsd:string', 'course_id_value' => 'xsd:string')
);

There are also some changes in the soap_user.php new variables added to the return array

'user_id_field_name' => array('name' => 'user_id_field_name', 'type' => 'xsd:string'),
'user_id_value' => array('name' => 'user_id_value', 'type' => 'xsd:string'),

There are also some new functions in web_service_user.php

/**
     * Get information for a specific user and return to caller
     * Function registered as service.  Returns strings in UTF-8.
     * @param string Secret_ket/ignature (composed of the sha1(secret_key+security_key)
     * @param string User id field name = chamilo_user_id / chamilo_user_name
     * @param string User id value = integer of usernaam
     * @return array User Information
     */
    public function UserInfo($secret_key, $user_id_field_name, $user_id_value) {

 /**
     * Get a list of courses (code, url, title, teacher, language) for a specific
     * user and return to caller
     * Function registered as service. Returns strings in UTF-8.
     * @param string User name in Dokeos
     * @param string Signature (composed of the sha1(username+apikey)
     * @return array Courses list (code=>[title=>'title',url='http://...',teacher=>'...',language=>''],code=>[...],...)
     */
    public function CourseList($secret_key, $user_id_field_name, $user_id_value, $visibility = 'public,public-registered,private,closed') {

 /**
     * Get a list of events between two dates for the given username
     * Function registered as service. Returns strings in UTF-8.
     * @param string Username
     * @param string User's API key (the user's API key)
     * @param int    Start date, in YYYYMMDD format
     * @param int    End date, in YYYYMMDD format
     * @return array Events list
     */
    public function EventsList($secret_key, $user_id_field_name, $user_id_value, $datestart = 0, $dateend = 0) {

/**
    * Get a list of users of which the given conditions match with an = 'cond'
    * @param array $conditions a list of condition (exemple : status=>STUDENT)
    * @param array $order_by a list of fields on which sort
    * @return array An array with all users of the platform.
    * @todo optional course code parameter, optional sorting parameters...
    */
    public function AllUsers($secret_key, $conditions=array(), $order_by=array(), $limit_from = false, $limit_to = false) {

 public function PurifyAndMakeUnique($secret_key, $username) {

That webservice folder is also a little bit messy, there are a lot of files called differently :

cm_soap_XXX.php
cm_webservice_XXX.php
soap_XXX.php
webservices_XXX.php

#12

Updated by Julio Montoya about 8 years ago

  • % Done changed from 60 to 70

New changes in the course restorer added, setting UTF8_CONVERT constant false by default, otherwise there will be a double conversion.

http://code.google.com/p/chamilo/source/detail?r=552bab82e519d0fafc33005e36588029f6621674&repo=classic

#13

Updated by Yannick Warnier about 8 years ago

LocalTimeUsingPortalTimezoneXIsY

#14

Updated by Yannick Warnier about 8 years ago

Yesterday in a test I couldn't see the result of a hotspot test I just took. Going to check that.

=> that seems to be a problem with my browser. Seems everything is normal.

Also, copying a multiple-choice question from one course to another seems to have lost the reference as to which answer is right.

=> Seems fixed by latest changes by Julio

When taking a test with two questions (literally indicated as "Question 1" and "Question 2", when seeing the results, it indicates "Question 2" and "Question 4"...

=> This seems to have been fixed with the latest commits by Julio

#15

Updated by Yannick Warnier about 8 years ago

  • Status changed from Needs more info to Bug resolved
  • % Done changed from 70 to 100

Also available in: Atom PDF