← Back to team overview

mahara-contributors team mailing list archive

[Bug 1268829] Re: When adding page without a title - Buttons incorrectly shown when displaying page

 

Hi Shane,

Well, if you look closely at the address bar when the "Back" button is
showing up, you'll notice that the URL has the extra bit "&new=1" on it.
This tells Mahara that the page has been newly created, and consequently
it shows a few things differently, like making the button say "Back"
instead of "Edit this page", although the button does the same thing
regardless of the text.

I'm not familiar with the design decisions behind the "new" flag, and
what exactly it's meant to accomplish, though.

I'm unable to replicate the issue you describe, where the title is saved
even if you don't click save. Here's what I did:

1. Log in
2. Click on the "Portfolio" tab
3. Click "Create page"
4. Now I'm on a new page, called "Untitled", in the "Edit title and description" tab.
5. I change the title to "Test"
6. Without clicking the "Save" button, I click on the "Edit content" tab.
7. I see a Javascript warning telling me that I have unsaved data on the page and confirming that I want to leave. I click "Leave Page"
8. Now on the "Edit content" tab, I click back to the "Edit title and description" tab.
9. The title has not changed. It's still "Untitled".

Are you doing something different?

On a related note, what theme are you using? Perhaps the duplicate
"Back" buttons are a custom theme problem?

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1268829

Title:
  When adding page without a title - Buttons incorrectly shown when
  displaying page

Status in Mahara ePortfolio:
  Incomplete

Bug description:
  Mahara 1.8.1 (also affects 1.7)
  Create page
  Don't re-title
  Don't save
  Click on Display Page

  Bug displayed: Rather than seeing buttons "Edit This Page - Back"
  "Back - Back" buttons are displayed.

  Please see screenshot.

  Thanks.

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


References