mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #03871
Re: [Bug 722470] Re: From/To Date Validation not working for VIEWS
Thanks Richard,
I'll have a shot at it and see how it goes.
Antonio
On 16/05/2011, at 9:11 AM, Richard Mansfield wrote:
> Well, it's all in htdocs/view/access.php. You're on your own here,
> because I don't have time to try it & test it.
>
> You'll notice there's a strptime function in that file that's defined
> inside a "if (!function_exists('strptime')) {" block.
>
> That's the one you want to use. But in your case, the function strptime
> *does* already exist, so the function defined there is not used.
>
> If you were to simply pull that function definition out of the if block,
> you'd probably get an error saying you can't redefine the function with
> the name 'strptime'.
>
> So what I'd do is pull the function definition out of the block, but
> rename it to something else like say 'strptime1', and then go through
> the rest of the file, and find all the calls to 'strptime', and change
> them to your new name.
>
> I just did a quick search, and conveniently it seems that's the only
> file you'll need to change.
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/722470
>
> Title:
> From/To Date Validation not working for VIEWS
>
> Status in Mahara ePortfolio:
> Incomplete
>
> Bug description:
> Mahara: 1.3.3
> SunOS java 5.11
> PHP 5.2.6
> MySQL
> Chrome 9.0.597.102, Mozilla 3.6.13, Safari 5.0.3
>
> When you go to EDIT ACCESS for a particular View and add any of the following:
> - Public
> - Logged In Users
> - Friends
> - Secret URL
> - A particular individual
>
> AND include a FROM and TO Date where the FROM date IS before the TO
> Date and the TO Date is in the future, you receive an error message:
> "The stop date cannot be in the past" which is clearly not correct.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/mahara/+bug/722470/+subscribe
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/722470
Title:
From/To Date Validation not working for VIEWS
Status in Mahara ePortfolio:
Incomplete
Bug description:
Mahara: 1.3.3
SunOS java 5.11
PHP 5.2.6
MySQL
Chrome 9.0.597.102, Mozilla 3.6.13, Safari 5.0.3
When you go to EDIT ACCESS for a particular View and add any of the following:
- Public
- Logged In Users
- Friends
- Secret URL
- A particular individual
AND include a FROM and TO Date where the FROM date IS before the TO
Date and the TO Date is in the future, you receive an error message:
"The stop date cannot be in the past" which is clearly not correct.
References