← Back to team overview

mahara-contributors team mailing list archive

[Bug 1044877] Re: Go back to the page on which you had started

 

Hi Aaron,

Thank you for your response to my post. Sorry I wasn't able to reply
promptly as I got busy with a lot of stuffs here and I wanted to reply
to you with the solution in codes. :)

I downloaded Eclipse Indigo with the XDebug debugger and yes it made
line-by-line code tracing a breeze! I didn't know such neat stuff was
available for PHP; I'm used to working with Adobe Dreamweaver CS3 in web
dev projects.

I'm attaching to this post the actual codes of my solution to the bug.
It seems I could attach only one file to this post so I'm just going to
compile them in a text file. I've included a few lines of documentation
to my codes to highlight which I've added/modified at:

/view/index.php
/view/delete.php
/theme/raw/templates/view/index.tpl

I understand Mahara is opensource & has a Git repository, should I sign
up for an account and just commit my codes there? As of now I'm a little
hesitant to do that as I might "mess up" something as I'm not an
official recognized contributor and I'm still on the process of getting
to know the structure of Mahara via self-study and reading discussions
in the forums. I have no experience in using Git but I use TortoiseSVN,
are they just the same in terms of implementation and usage?

Kind Regards,
Jose

P.S. This solution works for the Delete only (yet) but it could be
implemented for the Edit too as the 'callback' concept is just the same
for the two modules.

** Attachment added: "fix.txt"
   https://bugs.launchpad.net/mahara/+bug/1044877/+attachment/3664627/+files/fix.txt

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contrib members
https://bugs.launchpad.net/bugs/1044877

Title:
  Go back to the page on which you had started

Status in Mahara ePortfolio:
  Triaged

Bug description:
  When you have multiple pages of notes or portfolios, e.g. 13, and you
  delete a note from say page 10, you are taken back to page 1 after you
  deleted the note instead of being taken back to page 10. It would be
  good to go back to the original page, in this case 10, to continue
  where you left off.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1044877/+subscriptions


References