Re: [evolution-patches] Fix for the bug #67031 [tasks]



On Thu, 2004-10-14 at 20:09 +0530, pchenthill wrote:
> Hi,
>    For posted tasks due to the absence of completion date in the soap
> schema we set it as the current time so that the task is shown as
> completed in the view. 
>
> @@ -435,6 +462,15 @@ set_recipient_list_from_soap_parameter (
>                                 recipient->status =
> E_GW_ITEM_STAT_ACCEPTED;
>                         else    
>                                 recipient->status =
> E_GW_ITEM_STAT_NONE;
> +                       subparam =
> soup_soap_parameter_get_first_child_by_name (subparam, "completed");
> +                       if (subparam) {
> +                               char *formatted_date, *value; 
> +                               value =
> soup_soap_parameter_get_string_value (subparam);
> +                               formatted_date =
> e_gw_connection_format_date_string (value);
> +                               e_gw_item_set_completed_date (item,
> formatted_date);
> +                               g_free (value);
> +                               g_free (formatted_date);
> +                       }
> 
why are you converting the "completed" SOAP argument to a date? isn't it
always a boolean specifying whether the task is completed or not?
-- 
Rodrigo Moya <rodrigo novell com>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]