Results 1 to 4 of 4

Thread: [Jobroller] "New Pending Order" email to Admin is missing the edit link

  1. #1
    Thread Starter
    Expired Customer anna67's Avatar
    Join Date
    Feb 2014
    Location
    France
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    [Jobroller] "New Pending Order" email to Admin is missing the edit link

    Hi,

    Here's the problem : when paying an Order by Bank Transfer, an email is sent to the Admin noticing the new order, and finishes with two links like these :


    However, the first one is not rendered as a link.

    Here's the code, in file jobroller/includes/payments/gateways/bank-transfer/bt-emails.php line 9 :
    PHP Code:
    $order_link html_linkget_edit_post_link$post ), __'Review this order'APP_TD ) ); 
    The problem, I think, is that get_edit_post_link() needs that current user has the rights to edit posts, which might not be the case. Also, I think it needs a post ID, and not a post.

    I quickly dealed with if by replacing line 9 with :
    PHP Code:
    $order_link html_linkadmin_url'post.php?action=edit&post='.$post->ID ), __'Review this order'APP_TD ) ); 
    Hope it'll help

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    37,477
    Thanks
    161
    Thanked 3,051 Times in 2,926 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    Expired Customer anna67's Avatar
    Join Date
    Feb 2014
    Location
    France
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    37,477
    Thanks
    161
    Thanked 3,051 Times in 2,926 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Email Edit Ad Text Missing
    By epijunky in forum Report ClassiPress Bugs
    Replies: 13
    Last Post: June 18th, 2013, 02:30 PM
  2. Jomark 1.7 is missing "edit this job" on admin bar.
    By pulla in forum Help Using JobRoller
    Replies: 2
    Last Post: April 30th, 2013, 09:32 AM
  3. Dimitris Edit Order Page Paypal Pending
    By tbase in forum Report Vantage Bugs (Legacy)
    Replies: 4
    Last Post: February 24th, 2013, 04:20 PM
  4. Replies: 1
    Last Post: February 20th, 2012, 02:20 AM
  5. Cant find a Link or email to Admin
    By jimmyzjam in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: July 8th, 2011, 01:50 AM