Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature/topicmove #119

Merged
merged 14 commits into from
Mar 14, 2023
Merged

Feature/topicmove #119

merged 14 commits into from
Mar 14, 2023

Conversation

TamaroWalter
Copy link
Contributor

Feature is almost completed, only testing is missing:

A Teacher can move a topic by clicking the arrow icon on a discussion:
Screenshot from 2023-03-09 14-35-11

With clicking the icon, a table with all available courses will show up on the top of the forum.
image

By clicking on an arrow by the forum, the topic will be moved to the forum an the discussion site will reload without the table:
image

@NinaHerrmann
Copy link
Contributor

implements #112 and #69

@NinaHerrmann
Copy link
Contributor

image

@@ -202,10 +202,19 @@
{{^ lastpostusername }}-{{/ lastpostusername }}<br />
<a href="{{ lastpostlink }}">{{ lastpostdate }}</a>
</td>


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please insert an additional check - {subscribeormove} which only renders the column if the user can subscribe or move the topic or both.

$userto = $DB->get_record('user', array('id' => $user->userid));
$from = \core_user::get_noreply_user();
$subject = get_string('tasksenddailymail', 'mod_moodleoverflow');
mtrace($message);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove mtrace as for many post this might make the log very big

lib.php Outdated
// Terminate if the process takes more time then two minutes.
core_php_time_limit::raise(120);

// Tracing information.
mtrace('Processing user ' . $userto->id);

mtrace('Mail setting of user: ' . $userto->maildigest);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove mtrace as for many post this might make the log very big

@NinaHerrmann NinaHerrmann merged commit b6569b4 into master Mar 14, 2023
@NinaHerrmann NinaHerrmann deleted the feature/topicmove branch March 14, 2023 12:48
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants